public void Ok() { var viewModel = new ApprenticeshipApplicationViewModel { Candidate = new ApprenticeshipCandidateViewModel(), VacancyDetail = new ApprenticeshipVacancyDetailViewModel() }; var response = Mediator.AddEmptyQualificationRows(viewModel); response.AssertCode(ApprenticeshipApplicationMediatorCodes.AddEmptyQualificationRows.Ok, true); }
public void WillRemoveEmptyQualficationRows() { var viewModel = new ApprenticeshipApplicationViewModel { Candidate = CreateCandidateWithOneQualificationAndTwoEmptyQualifications(), VacancyDetail = new ApprenticeshipVacancyDetailViewModel() }; var response = Mediator.AddEmptyQualificationRows(viewModel); response.AssertCode(ApprenticeshipApplicationMediatorCodes.AddEmptyQualificationRows.Ok, true); response.ViewModel.Candidate.Qualifications.Should().HaveCount(1); }