public async Task WhenQualificationIsAdded_ShouldFlagQualificationsFieldIndicator() { var fixture = new QualificationsOrchestratorTestsFixture(); fixture .WithQualfication("Mathematics", "A", "GCSE", QualificationWeighting.Desired) .Setup(); var qualification = new Qualification { Subject = "English", Grade = "A", QualificationType = "GCSE", Weighting = QualificationWeighting.Essential }; await fixture.PostQualificationEditModelForAddAsync( new VacancyRouteModel { Ukprn = fixture.Vacancy.TrainingProvider.Ukprn.Value, VacancyId = fixture.Vacancy.Id }, FromQualification(qualification)); fixture.VerifyProviderReviewFieldIndicators(FieldIdentifiers.Qualifications, true); }
public async Task WhenQualificationIsDeleted_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(); await fixture.DeleteQualificationAsync( new VacancyRouteModel { Ukprn = fixture.Vacancy.TrainingProvider.Ukprn.Value, VacancyId = fixture.Vacancy.Id }, index : 1); fixture.VerifyProviderReviewFieldIndicators(FieldIdentifiers.Qualifications, true); }