Mocking!


Details
We will go over two kinds of mocking:
- functional mocking for testing using Moq
- making fake data using Bogus
When testing, you often are testing systems which call external systems or make permanent changes. But you don't want to do it for real, yet want to run tests. Mocking out your methods and classes is really simple using the Moq Library.
You also may want to have a good dataset to test on, but either don't want to test with real data, or need generated data. Bouncy library let's you generate a whole slew of fake data - people, ages, dates, addresses, et cetera.
We will discuss these two libraries and show examples of using them. And of course we will talk ALOT about testing!
Slides:
https://docs.google.com/presentation/d/1Uuc91xpDc-w20ytGJ0BZnpBRzLON9UWo3JEhIm957TU/edit?usp=sharing


Mocking!