Description
Course info
Rating
(131)
Level
Intermediate
Updated
Aug 20, 2012
Duration
1h 21m
Description

This prepares you with the fundamental reasons that you would want to use a mocking framework. It also covers, in detail, how to create and use fakes (or mock objects as they're commonly known) using the FakeItEasy framework as well as advanced usages of that framework.

About the author
About the author

Donald Belcham is a senior software developer, independent contractor, and agile development expert who is a strong supporter of fundamental OO patterns and practices. Since 2007, he has been awarded the Microsoft MVP Award in C# and is a member of the JetBrains Academy.

More from the author
What’s New in PostSharp v3
Intermediate
51m
Jan 30, 2014
Microsoft Fakes Fundamentals
Intermediate
1h 56m
Oct 10, 2012
More courses by Donald Belcham
About the author

Jim Cooper is a software developer at Pluralsight. With more than 20 years of software development experience, he has gained a passion for Agile software development -- especially Lean.

More from the author
Angular Fundamentals
Intermediate
9h 35m
Jul 3, 2018
Vue.js Fundamentals
Intermediate
5h 5m
Jun 21, 2018
Angular Best Practices
Intermediate
1h 41m
Oct 23, 2017
More courses by Jim Cooper
Section Introduction Transcripts
Section Introduction Transcripts

Introduction
Donald Belcham: Hi. My name is Donald Belcham, and welcome to the Pluralsight training course on the FakeItEasy framework. This training course we're going to cover a number of different things. The first thing will be an introduction to mocking or faking as it's called in FakeItEasy that will be done by Jim Cooper. Next we'll go in and take a look at hand rolled mocks and how they pertain to mocking in your testing code. Next we'll do an introduction to the FakeItEasy framework and show you how you can get the framework set up and start using it on your projects. After that, we're going to take a look at the fundamentals of faking when you're using the FakeItEasy framework. And, finally, we'll look at advanced faking with FakeItEasy.

Introduction to FakeItEasy
Donald Belcham: Welcome to another Pluralsight video. My name is Donald Belcham, and we're going to go through an introduction to FakeItEasy. In this module we're going to cover what exactly is FakeItEasy and why does it matter that it's defined differently than other mocking frameworks and what will it take for you to get started using FakeItEasy.

Faking with FakeItEasy
Hi, my name is Donald Belcham. And in this module of the Pluralsight FakeItEasy course, we're going to look at how you can do faking with FakeItEasy. There are number of different things we're going to cover in this module. The first thing that we're going to look at is the AAA syntax and how that applies to FakeItEasy. Next, we're going to look at how you can do verification of the dependencies to your system under test using FakeItEasy. We'll also look at how FakeItEasy can manage return values so that you can control the execution flow in your system under test. We'll also look at how FakeItEasy deals with parameters that are being passed into calls to those dependencies. The next thing we'll look at is how you can throw dependencies from your system under test using FakeItEasy so that you can verify that your exception handling code is working properly. We'll also look at how you can verify that setters and getters are being called on your dependencies, as well as how you can use those property values to control your execution flow. Finally, we'll take a look at how you can mock events so that you can verify that the eventing code inside of your system under test is working properly.

Advanced Faking with FakeItEasy
Hi, my name is Donald Belcham and in this module of the FakeItEasy course on Pluralsight we're going to look at advanced faking. There are a couple of things that we're going to talk about in this module. The first one we're going to look at is strict and Loose mocking and how FakeItEasy deals with it. We're also going to take a look at how you can fake out protected members on your classes.