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
From.Services<MyDataContext>(), // Action injected services can be populated with this call.
482
482
newMyModel { Id=id },
483
483
CancellationToken.None))
484
-
484
+
485
485
// Assert
486
486
.ShouldReturn()
487
487
.Redirect(redirect=>redirect
488
488
.To<AnotherController>(c=>c.AnotherAction(
489
489
With.No<MyDataContext>(),
490
490
id)));
491
-
491
+
492
492
// With variables.
493
493
494
494
// Arrange
495
495
varcontroller=MyController<MyMvcController>
496
496
.Instance()
497
497
.WithUser(username, new[] { role })
498
498
.WithData(MyTestData.GetData());
499
-
499
+
500
500
// Act
501
501
varcall=controller.Calling(c=>c.MyAction(id));
502
502
@@ -560,7 +560,7 @@ MyMvc
560
560
.WithDomain("mydomain.com")
561
561
.WithExpiration(myDateTimeOffset)
562
562
.WithPath("/")))
563
-
.AndAlso()
563
+
.AndAlso()
564
564
.ShouldReturn()
565
565
.Ok();
566
566
```
@@ -581,9 +581,10 @@ This package will include all available assertion methods in your test project,
581
581
-`MyTested.AspNetCore.Mvc.Controllers.ActionResults` - Contains setup and assertion methods for controller API action results
582
582
-`MyTested.AspNetCore.Mvc.Controllers.Views` - Contains setup and assertion methods for controller view features
583
583
-`MyTested.AspNetCore.Mvc.Controllers.Views.ActionResults` - Contains setup and assertion methods for controller view action results
584
-
-`MyTested.AspNetCore.Mvc.Models` - Contains setup and assertion methods for response and view models
584
+
-`MyTested.AspNetCore.Mvc.Models` - Contains setup and assertion methods for responses and view models
585
585
-`MyTested.AspNetCore.Mvc.Routing` - Contains setup and assertion methods for routes
586
586
-`MyTested.AspNetCore.Mvc.Core` - Contains setup and assertion methods for MVC core features
587
+
-`MyTested.AspNetCore.Mvc.Pipeline` - Contains setup methods for pipeline tests
587
588
-`MyTested.AspNetCore.Mvc.TempData` - Contains setup and assertion methods for `ITempDataDictionary`
588
589
-`MyTested.AspNetCore.Mvc.ViewData` - Contains assertion methods for `ViewDataDictionary` and dynamic `ViewBag`
589
590
-`MyTested.AspNetCore.Mvc.ViewComponents` - Contains setup and assertion methods for view components
@@ -604,7 +605,7 @@ This package will include all available assertion methods in your test project,
604
605
605
606
After the downloading is complete, just add `using MyTested.AspNetCore.Mvc;` to your source code and you are ready to test in the most elegant and developer friendly way.
0 commit comments