Skip to content

Allow multiple results per controller test #281

@ivaylokenov

Description

@ivaylokenov

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();

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions