This training session talks about using xUnit and MOQ to build API Tests. It contains 8 different videos that should be played in the order listed. The videos will open up in a new tab in your browser. The original resolution of the videos is 1920 x 1080. The approximate time to watch all of the training is 1 hour and 2 minutes.
Video Links
- Introduction (01:57)
- Web API Design (08:30)
- Test Doubles (03:52)
- Moq Demo (09:02)
- Unit Tests (08:27)
- xUnit Demo (17:06)
- Test Execution (04:02)
- Unit Testing Return on Investment (05:21)
- Conclusion (03:10)
Code Repository
Reference Links
The links below are for the references I used in the videos. They are all described in the “Conclusion” portion of the training.
- Mocks aren’t stubs
- xUnit Shared Context
- Moq Quick Start
- Fluent Test Classes with Moq
- xUnit and Theory Data
- Enhancing Theory Data tests
- User Secrets for class library
- xUnit -> Capturing Output
- Integration Testing ASP.NET Core 5
- https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-5.0