Ejemplo n.º 1
0
 public DeleteDraftApprenticeshipTestsFixture WithMapperThrowingCohortEmployerUpdateDeniedException()
 {
     ModelMapperMock
     .Setup(x => x.Map <DeleteDraftApprenticeshipViewModel>(DeleteDraftApprenticeshipRequest))
     .ThrowsAsync(new CohortEmployerUpdateDeniedException($"Cohort {DeleteDraftApprenticeshipRequest.CohortId} is not With the Employer"));
     return(this);
 }
Ejemplo n.º 2
0
 public DeleteDraftApprenticeshipTestsFixture WithMapperThrowingDraftApprenticeshipNotFoundException()
 {
     ModelMapperMock
     .Setup(x => x.Map <DeleteDraftApprenticeshipViewModel>(DeleteDraftApprenticeshipRequest))
     .ThrowsAsync(new DraftApprenticeshipNotFoundException());
     return(this);
 }
Ejemplo n.º 3
0
 public void Verify_Mapper_IsCalled_Once()
 {
     ModelMapperMock.Verify(x => x.Map <DeleteDraftApprenticeshipViewModel>(DeleteDraftApprenticeshipRequest));
 }
 public DetailsTestFixture WithCohortWithEmployer()
 {
     ModelMapperMock.Setup(x => x.Map <IDraftApprenticeshipViewModel>(It.IsAny <DetailsRequest>()))
     .ReturnsAsync(new EditDraftApprenticeshipViewModel());
     return(this);
 }