MyTested.AspNetCore.Mvc
MyTested.AspNetCore.Mvc copied to clipboard
Full integration test from route to controller
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