MyTested.AspNetCore.Mvc
MyTested.AspNetCore.Mvc copied to clipboard
Allow multiple results per controller test
Sample tests should look like this:
MyController<MyMvcController>
.Instance()
.WithUser(user => user
.WithUsername("MyUserName"))
.Calling(c => c.Index())
.ShouldReturn()
.Ok()
.But()
.WithoutUser()
.ShouldReturn()
.Unathorized();
MyController<MyMvcController>
.Instance()
.Calling(c => c.Get(1))
.ShouldReturn()
.Ok()
.But()
.CallingWith(0)
.ShouldReturn()
.NotFound();