Пример #1
0
        public async Task PostConfirmEmployerViewModel_WithValidModel_WithConfirmTrue_ThenRequestIsMapped()
        {
            var fixture = new PostConfirmEmployerFixture()
                          .WithConfirmTrue();
            await fixture.Act();

            fixture.VerifyMapperIsCalled();
        }
Пример #2
0
        public async Task PostConfirmEmployerViewModel_WithValidModel_WithConfirmFalse_ShouldRedirectToSelectEmployer()
        {
            var fixture = new PostConfirmEmployerFixture()
                          .WithConfirmFalse();

            var result = await fixture.Act();

            result.VerifyReturnsRedirectToActionResult().WithActionName("SelectEmployer");
        }
Пример #3
0
        public void PostConfirmEmployerViewModel_WithValidModel_WithConfirmTrue_ShouldCreateCohortAndRedirectToCohortDetailsPage()
        {
            var fixture = new PostConfirmEmployerFixture()
                          .WithConfirmTrue();

            var result = fixture.Act();

            fixture.VerifyReturnsRedirect(result);
        }
Пример #4
0
        public async Task PostConfirmEmployerViewModel_WithValidModel_WithConfirmTrue_ShouldCreateCohortAndRedirectToCohortDetailsPage()
        {
            var fixture = new PostConfirmEmployerFixture()
                          .WithConfirmTrue();

            var result = await fixture.Act();

            fixture.VerifyCohortCreated();
            result.VerifyReturnsRedirect().WithUrl(fixture.RedirectUrl);
        }