public async Task PostDeleteCohortViewModel_WithValidModel_WithConfirmTrue_ShouldDeleteCohort() { var fixture = new PostDeleteCohortFixture() .WithConfirmTrue(); await fixture.Act(); fixture.VerifyCohortDeleted(); }
public async Task PostDeleteCohortViewModel_WithValidModel_WithConfirmTrue_ShouldRedirectToCohortsPage() { var fixture = new PostDeleteCohortFixture() .WithConfirmTrue(); var result = await fixture.Act(); result.VerifyReturnsRedirectToActionResult().WithActionName("Review"); }
public async Task PostDeleteCohortViewModel_WithValidModel_WithConfirmFalse_ShouldRedirectToSelectEmployer() { var fixture = new PostDeleteCohortFixture() .WithConfirmFalse(); var result = await fixture.Act(); result.VerifyReturnsRedirectToActionResult().WithActionName("Details");; }