Ejemplo n.º 1
0
        public async Task WithRejectChanges_RedirectToApprenticeDetails()
        {
            _fixture = _fixture.WithRejectChanges();

            var result = await _fixture.Act();

            result.VerifyReturnsRedirectToRouteResult().WithRouteName(RouteNames.ApprenticeDetail);
        }
Ejemplo n.º 2
0
        public async Task WithRejectChanges_Changes_Rejected_Message_Is_Stored_In_TempData()
        {
            _fixture = _fixture.WithRejectChanges();

            await _fixture.Act();

            _fixture.VerifyChangesRejectedFlashMessageStoredInTempData();
        }
Ejemplo n.º 3
0
        public async Task WithAcceptChanges_ChangesApproved_Message_Is_Stored_In_TempData()
        {
            _fixture = _fixture.WithAcceptChanges();

            await _fixture.Act();

            _fixture.VerifyChangesApprovedFlashMessageStoredInTempData();
        }
Ejemplo n.º 4
0
        public async Task WithRejectChanges_RejectChanges_Is_Called()
        {
            _fixture = _fixture.WithRejectChanges();

            await _fixture.Act();

            _fixture.VerifyRejectChangesCalled();
        }
Ejemplo n.º 5
0
        public async Task WithAcceptChanges_AcceptChanges_Is_Called()
        {
            _fixture = _fixture.WithAcceptChanges();

            await _fixture.Act();

            _fixture.VerifyAcceptChangesCalled();
        }
Ejemplo n.º 6
0
 public void Arrange()
 {
     _fixture = new WhenPostingReviewApprenticeshipUpdatesFixture();
 }