public async Task ULN_IsMapped(ConfirmStopRequest request) { var mapper = new ConfirmStopRequestToViewModelMapper(mockCommitmentsApiClient.Object); var result = await mapper.Map(request); Assert.AreEqual(ExpectedUln, result.ULN); }
public async Task ApprenticeName_IsMapped(ConfirmStopRequest request) { var mapper = new ConfirmStopRequestToViewModelMapper(mockCommitmentsApiClient.Object); var result = await mapper.Map(request); Assert.AreEqual(ExpectedFullName, result.ApprenticeName); }
public async Task MadeRedundant_IsMapped(ConfirmStopRequest request) { var mapper = new ConfirmStopRequestToViewModelMapper(mockCommitmentsApiClient.Object); var result = await mapper.Map(request); Assert.AreEqual(request.MadeRedundant, result.MadeRedundant); }
public async Task AccountHashedId_IsMapped(ConfirmStopRequest request) { var mapper = new ConfirmStopRequestToViewModelMapper(mockCommitmentsApiClient.Object); var result = await mapper.Map(request); Assert.AreEqual(request.AccountHashedId, result.AccountHashedId); }
public async Task WhenApprenticeship_Status_IsWaitingToStart_StopDate_IsMapped(ConfirmStopRequest request) { ApprenticeshipDetails.Status = CommitmentsV2.Types.ApprenticeshipStatus.WaitingToStart; var mapper = new ConfirmStopRequestToViewModelMapper(mockCommitmentsApiClient.Object); var result = await mapper.Map(request); Assert.AreEqual(ExpectedStartDateTime, result.StopDate); }
public async Task WhenApprenticeship_Status_IsLive_StopDate_IsMapped(ConfirmStopRequest request) { request.StopMonth = 6; request.StopYear = 2020; ApprenticeshipDetails.Status = CommitmentsV2.Types.ApprenticeshipStatus.Live; var mapper = new ConfirmStopRequestToViewModelMapper(mockCommitmentsApiClient.Object); var result = await mapper.Map(request); Assert.AreEqual(2020, result.StopDate.Year); Assert.AreEqual(6, result.StopDate.Month); }