Here you can find a few working samples, which will get you started with the library.
- MusicStore - sample showing how to use MyTested.AspNetCore.Mvc with an automatically resolved
TestStartupclass for unit testing controllers, view components and routes. It uses the official ASP.NET Core MVC sample and xUnit.
Functional Test Samples
- ApplicationParts - minimalistic functional sample testing whether controllers are found correctly when registered from external assemblies. Uses manual
Startupconfiguration and NUnit.
- NoStartup - minimalistic functional sample showing how to use the testing library without any globally configured
Startupclass. Uses MSTest.
- Lite - minimalistic functional sample showing how to use the completely FREE and UNLIMITED version of the library -
MyTested.AspNetCore.Mvc.Lite. Tests API controllers by using automatically resolved
TestStartupclass and Moq.