You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,31 @@ For other interesting packages check out:
27
27
## How to use
28
28
29
29
Make sure to check out the [tutorial](http://ivaylokenov.github.io/MyTested.AspNetCore.Mvc/tutorial/intro.html) (comming soon) and the [documentation](http://ivaylokenov.github.io/MyTested.AspNetCore.Mvc/guide/intro.html) (comming soon) for a preview of the available features.
30
+
30
31
You can also check out the [provided samples](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/master/samples) for real-life ASP.NET Core MVC application testing.
31
32
32
-
Basically you can create a test case by using the fluent API the library provides. You are given a static `MyMvc` class from which all assertions can be easily configured.
33
+
First we need to create a `TestStartup` class in the root of the test project in order to register the dependency injection services. The easiest way is to inherit from the web project's `Startup` class and replace some of the services with mocked ones by using the provided extension methods.
And then you can create a test case by using the fluent API the library provides. You are given a static `MyMvc` class from which all assertions can be easily configured.
0 commit comments