Ejemplo n.º 1
0
        public void ShouldAssertProviderCannotReviewOwnUpdate()
        {
            //Arrange
            _pendingApprenticeshipUpdate.ApprenticeshipUpdate.Originator = Originator.Provider;

            //Act
            Func <Task> act = async() => await _orchestrator.GetReviewApprenticeshipUpdateModel(0, "");

            act.Should().Throw <ValidationException>();
        }
        public async Task <ActionResult> ReviewChanges(long providerId, string hashedApprenticeshipId)
        {
            var model = await _orchestrator.GetReviewApprenticeshipUpdateModel(providerId, hashedApprenticeshipId);

            return(View(model));
        }