public async Task WhenQualificationIsUpdated_ShouldFlagQualificationsFieldIndicator() { var fixture = new QualificationsOrchestratorTestsFixture(); fixture .WithQualfication("Mathematics", "A", "GCSE", QualificationWeighting.Desired) .WithQualfication("English", "B", "GCSE", QualificationWeighting.Essential) .WithQualfication("Science", "C", "GCSE", QualificationWeighting.Essential) .Setup(); var qualification = new Qualification { Subject = "English", Grade = "C", QualificationType = "GCSE", Weighting = QualificationWeighting.Desired }; await fixture.PostQualificationEditModelForEditAsync( new VacancyRouteModel { EmployerAccountId = fixture.Vacancy.EmployerAccountId, VacancyId = fixture.Vacancy.Id }, FromQualification(qualification), index : 1); fixture.VerifyEmployerReviewFieldIndicators(FieldIdentifiers.Qualifications, true); }
public async Task WhenQualificationIsUpdated_ShouldCallUpdateDraftVacancyAsync() { var fixture = new QualificationsOrchestratorTestsFixture(); fixture .WithQualfication("Mathematics", "A", "GCSE", QualificationWeighting.Desired) .WithQualfication("English", "B", "GCSE", QualificationWeighting.Essential) .WithQualfication("Science", "C", "GCSE", QualificationWeighting.Essential) .Setup(); var qualification = new Qualification { Subject = "English", Grade = "C", QualificationType = "GCSE", Weighting = QualificationWeighting.Desired }; await fixture.PostQualificationEditModelForEditAsync( new VacancyRouteModel { Ukprn = fixture.Vacancy.TrainingProvider.Ukprn.Value, VacancyId = fixture.Vacancy.Id }, FromQualification(qualification), index : 1); fixture.VerifyUpdateDraftVacancyAsyncIsCalled(); }