Mocking application with Moq (Udemy.com)
Mocking real implementation of application with fake implementation using Moq
Created by: Karthik KK
Last updated June 2016
What you will learn
- 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
How it compares
Against the other 281 rated Udemy courses in Software Testing on CourseDuck:
- Rating4.4 out of 5higher than 35% of them
- Reviews375#192 of 282 by number of reviews
- Length1.1 hoursshorter than 96% of them
- Last updatedJune 2016earlier than 97% of them
Course Description
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.
Instructor Details
- 4.4 Rating
375 Reviews
Karthik KK
I am Karthik K.K. I do consulting, blogging and researching on various different tools and technologies which inspire my interest. I have been into Software Automation Testing for over 20 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
AI and Machine Learning: Built an Tool for Playwright MCP Server, LangChain, DeepEval, RAGAs, HuggingFace, Fine-tuning LLMs
Desktop & Web : Cypress, Selenium, Specflow,Puppeteer,Plawright, UFT, 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, Event-Driven System
More courses by Karthik KK
2026-Using Gen AI & AI Agent in Software Automation Testing
4.5 (3,603 Reviews)
Provider: Udemy
Time: 12.8h
$19.99
2026 -Understand Docker and using it for Selenium automation
4.1 (3,418 Reviews)
Provider: Udemy
Time: 6.2h
$19.99
2026 - Automation framework with Selenium Java (Advanced)
4.4 (2,378 Reviews)
Provider: Udemy
Time: 12.8h
$10.99
2026-Automation Framework Development with Selenium C# .NET
4.3 (1,810 Reviews)
Provider: Udemy
Time: 14.1h
$10.99
More Software Testing courses
ZeroToHero TestNG Framework - From Basics to Advanced (2026)
4.9 (828 Reviews)
Provider: Udemy
Time: 6.2h
$59.99
Selenium WebDriver with Java- Basics to Advanced + Framework (2026)
4.9 (620 Reviews)
Provider: Udemy
Time: 35.5h
$84.99
Karate DSL: API Automation and Performance from Zero to Hero (2026)
4.8 (4,652 Reviews)
Provider: Udemy
Time: 7.2h
$10.99
API Testing in detail using Postman - Test Automation (2026)
4.8 (423 Reviews)
Provider: Udemy
Time: 7.8h
$10.99
Quick Introduction to Postman and API Testing for Beginners (2025)
4.7 (23,113 Reviews)
Provider: Udemy
Time: 3.2h
$13.99
Software Testing Masterclass (2026) - From Novice to Expert
4.7 (12,622 Reviews)
Provider: Udemy
Time: 9.9h
$149.99
Reviews
By Vivek Bannur Siddappa on 11/16/2025
Thanks for the clear and simple explanation on Moq and unit testing. I finally understand what unit tests are and how they help developers write better code. The examples are easy to follow and really effective. It would be great if you could share the source code so we can practice the test scenarios ourselves and learn even more.
By Doug Weinstein on 7/30/2022
I give the presenter credit for a clear and easy-to-follow presentation. Realizing that it's a free course, effective first introduction, yet quite simplistic. You'll get the very basics clearly, but nothing more. A decent job by Khartik.
By Péter Sziráki on 9/24/2020
The material is great, and easy to understand thanks to your good explanation. The best way to learn is the practice, but I cannot practice by myself during the explanation without downloadable code of sample application.
By Siddharthkumar Patel on 2/23/2020
It's good to see the example of different topic to use and get hand-on different Moq framework methods, but my suggestion is that please add some extra content to understand for e.g. Moq method is exactly made for what, what are the parameters, which type of moq objects it can take in etc.. , for each Moq method you've used within this course.
By Eric Bell on 10/25/2019
As a complete newbie to MOQ, I found this to be very helpful. I went from being really frustrated and confused to being able to complete my first moq-based test on my own project.
By Gwydion Saxelby on 12/11/2018
You seriously need to add the source code. I'ts quite hard to follow your examples as i'ts mostly lambda expressions and generics. Well commented source code would make this so much easier since i could then see the classes were testing, how and why without just blind faith that this method needs tested like x because i say so. Free course though so i suppose i cant complain too much. but having completed it i feel i don't know moq which is unusual for udemy courses...
By Frans Blezer on 2/15/2018
This is a nice quick introduction on the Moq isolation framework, with even some pointers on more advanced mocking subjects thrown in. It would have been nice if the source code demoed were available. But the demonstrations were easy to follow without it, and hey, you can't complain about a free course ;-)
By Prabhugurudarshan Singh on 9/19/2017
If you are new to Moq framework, this would be the recommended place to start your journey. Although the course is concise the instructor ensures that the common usages and scenarios are covered in a simple and engaging way. Adding a few quizzes would definitely improve and re-enforce learning. This introduction to Moq framework was definitely worth my time.
By Vimalarajah Thavarajah on 8/7/2017
Basic required is being covered very well, good ground setup for a deeper dive into unittesting and MOQ.
By Jean-Marc Robin on 6/25/2016
Nice introduction to Moq. I have used Visual Studio 2015 with the NUnit 3 Adaptater Extension, then NUnit 3 and Moq packages from NuGet. Everything worked like a charm. Of course, at the beginning, it takes time to understand the "super simple project". Thanks.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 88 / 100












