Unit tests on a Web API application can save time, but they can miss errors the occur with API itself - or report errors that aren't really there. Integration testing is the solution.
Source code available at: https://github.com/JasperKent/WebApi-Integration-Testing
Topics include:
- The problems of manual testing
- The problems of external test scripts
- The problems of unit testing in C#
- Integration testing with the ASP.NET WebApplicationFactory
- Injecting Moq objects
- Access Program by avoiding top-level statements