MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

Mocking With Moq

Course Summary

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 mock objects using the Moq framework as well as advanced usages of that framework.

  • +

    Course Syllabus

    ● Introduction
        ◦ Course Overview
        ◦ What is Moq?
        ◦ Supported Frameworks
        ◦ Getting Started
        ◦ Summary
    ● Using Test Doubles to Improve Unit Tests
        ◦ Introduction
        ◦ Unit Testing Can Be Difficult
        ◦ Properties of a Good Unit Test
        ◦ How Test Doubles Can Help
    ● Hand Rolled Mock Objects
        ◦ Introduction
        ◦ Creating Hand Rolled Mocks
        ◦ Demo: Creating Hand Rolled Mocks
        ◦ The Good
        ◦ The Bad
        ◦ The Ugly
        ◦ Summary
    ● Mocking with Moq
        ◦ Introduction
        ◦ The AAA Syntax
        ◦ Demo: AAA Syntax
        ◦ Simple Mock Verification
        ◦ Demo: Simple Mock Verification
        ◦ Return Values
        ◦ Demo: Return Values
        ◦ Demo: Out Parameters
        ◦ Demo: Multiple Return Values
        ◦ Method/Function Arguments
        ◦ Demo: Argument Tracking
        ◦ Demo: Arguments and Execution Flow
        ◦ Mocking Exceptions
        ◦ Demo: Exceptions
        ◦ Mocking Properties
        ◦ Demo: Mocking Property Setters
        ◦ Demo: Mocking Property Getters
        ◦ Demo: Mocking Property Hierarchies
        ◦ Stubbing Properties
        ◦ Demo: Stubbing Properties
        ◦ Mocking Events
        ◦ Demo: Mocking Events
        ◦ Summary
    ● Advanced Mocking with Moq
        ◦ Introduction
        ◦ Strict vs Loose Mocking
        ◦ Demo: Strict
        ◦ Base Class Implementations
        ◦ Demo: Base Class Implementations
        ◦ Recursive Mocking
        ◦ Demo: Recursive Mocking
        ◦ Centralizing Mock Creation
        ◦ Demo: Centralizing Mock Creation
        ◦ Protected Members
        ◦ Demo: Protected Members
        ◦ Summary


Course Fee:
USD 29

Course Type:


Course Status:



1 - 4 hours / week

This course is listed under Development & Implementations and Quality Assurance & Testing Community

Related Posts:

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top