MyTested.AspNetCore.Mvc icon indicating copy to clipboard operation
MyTested.AspNetCore.Mvc copied to clipboard

Full integration test from route to controller

Open ivaylokenov opened this issue 6 years ago • 0 comments

Example test:

MyRouting
    .Configuration()
    .ShouldMap(request => request
        .WithMethod(HttpMethod.Post)
        .WithLocation("/My/Action")
        .WithFormFields(new
        {
            Title = title,
            Content = content
        })
        .WithUser()
        .WithAntiForgeryToken())
    .To<MyController>(c => c.Action(new MyFormModel
    {
        Title = title,
        Content = content
    }))
    .Which()
    .WithData(data)
    .ShouldReturn()
    .View();
  • [x] Feature & unit tests
  • [x] Add the Pipeline package to the Core package
  • [x] Add tests to the Music Store and Blog samples
  • [x] Add pipeline section to the Readme
  • [x] Add information about the Pipeline package in the texts
  • [ ] Add section to the tutorial

ivaylokenov avatar Jul 07 '19 10:07 ivaylokenov