Рет қаралды 198,461
Become a Patreon and get source code access: / nickchapsas
Check out my courses: dometrain.com
The giveaway is now over. Thanks for participating.
Hello everybody I'm Nick and in this .NET tutorial I will show you how you can get started with mocking external dependencies in unit testing using Moq. Moq is the most popular mocking framework in .NET and even though it is not my personal favourite, I highly recommend it.
Moq detailed documentation: github.com/Moq...
In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways, most often as part of a software testing initiative. A programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts.
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: bit.ly/ChapsasG...
Follow me on Twitter: bit.ly/ChapsasT...
Connect on LinkedIn: bit.ly/ChapsasL...
#dotnet #tests #mocking