Skip to content

TestLayer

Mehmet Özkaya edited this page Apr 21, 2019 · 3 revisions

For each layer, there is a test project which includes intended layer dependencies and mock classes. So that means Core-Application-Infrastructure and Web layer has their own test layer. By this way this test projects also divided by unit, functional and integration tests defined by in which layer it is implemented. Test projects using xunit and Mock libraries. xunit, because that's what ASP.NET Core uses internally to test the product. Moq, because perform to create fake objects clearly and its very modular.

You can see step by step development of test projects in below link of wiki. You can directly jump to step by step test part.

https://github.com/aspnetrun/run-aspnetcore/wiki/TestCore

Clone this wiki locally