Mocking application with Moq

Mocking real implementation of application with fake implementation using Moq
Rating: 4.0 out of 5 (262 ratings)
8,595 students
Mocking application with Moq
Rating: 4.0 out of 5 (262 ratings)
8,596 students
Understand what Mocking framework is all about
How to work with Moq
How to abstract the real implementation with Mock implementation
How to apply Moq framework in development and Testing


  • Good understanding in C#
  • Good knowledge in API
  • Solid understanding of Unit Testing

 In the course Mocking framework(Moq) we will learn and understand

1. What is Mocking framework all about

2. How to work without Moq and problem while working with real application

3. How to work with Moq

4. How to work and test different components of C# like

            a. Methods/Returns values/ Times method called

            b. Parameters/Tracking parameters

            c. Auto-implemented properties

            d. Properties

5. Working with advanced Moq concepts like strict and loose Moq

6. Working with Property stubbing

With this course one will also get benefit of understanding how developers do testing of real application by isolating the non-focused components using Moq objects.

Who this course is for:
  • This course is designed for both QA and Dev
2 sections • 10 lectures • 1h 8m total length
  • Introduction to Moq
  • Installing and writing simple code without Moq
  • Part 2b - Writing first simple Mock code with Moq
  • Part 3 -- Working with return values of methods using Moq
  • Part 4 -- Test times method being called using Moq
  • Part 5 - Times method being called using Moq (complex)
  • Part 6 -- Matching/Tracking parameters for method with Moq
  • Part 7 -- Test C# Property Get and Set operation using Moq
  • Part 8 -- Property Stubbing using Moq
  • Part 9 -- Strict and Loose Moq

Software Architect, Consultant,Youtuber and Best Seller
Karthik KK
  • 4.2 Instructor Rating
  • 17,824 Reviews
  • 199,706 Students
  • 25 Courses

I am Karthik K.K. I do consulting, blogging and researching on various different tools and technologies which inspires my interest. I have been into Software Automation Testing for over 12 years now and my interest in learning new stuffs which enables automation has never been compromised.

Due to my passion in automation testing I got fully exposed to tools and languages like

Desktop & Web : QTP, Selenium, Specflow, VS Coded UI, Ranorex ,Test Complete and Cucumber
Mobile : Appium, Robotium,Calabash, Espresso, Selendroid
Languages : C#, Java, Ruby, Powershell, Javascript, VBScript 
Cloud Tools : Azure, Dockers
Misc Tools: Mockito, Rest-assured, Bound-Box,FluentAutomation
Interested in: MVC, Entity framework, LINQ, Fakes, Distributed deployment, SAAS