Skip to content

Added new columns to account introduced by evergreen update wave2 202… #998

Added new columns to account introduced by evergreen update wave2 202…

Added new columns to account introduced by evergreen update wave2 202… #998

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / DQT test results failed Sep 15, 2023 in 1s

DQT test results ❌

Tests failed

❌ TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az674-469_2023-09-15_12_16_01.trx

392 tests were completed in 1207s with 387 passed, 4 failed and 1 skipped.

Test suite Passed Failed Skipped Time
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.ClearTeacherIdentityInfoTests 2✅ 37s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.CreateTeacherTests 95✅ 1⚪ 305s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.FindTeachersTests 4✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetCountryTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEarlyYearsStatusTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEytsAwardeesForDateRangeTests 2✅ 100s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeQualificationByCodeTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeSubjectByCodeTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests 2✅ 1❌ 57s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionCompleteesForDateRangeTests 1✅ 100s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInitialTeacherTrainingByTeacherTests 3✅ 60s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInternationalQtsAwardeesForDateRangeTests 1✅ 96s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttProvidersTests 1✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttSubjectByCodeTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetMatchingTeachersTests 11✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetOrganizationsByUkprnTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQtsAwardeesForDateRangeTests 2✅ 56s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationByIdTests 2✅ 42s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationsForTeacherTests 8✅ 431s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetSubjectByTitleTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherByHusIdTests 2✅ 40s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByInitialTeacherTrainingSlugIdTests 2✅ 39s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByTrnAndDobTests 2✅ 37s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherStatusTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherTests 4✅ 90s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetIttOutcomeForTeacherTests 35✅ 597s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetNpqQualificationTests 41✅ 662s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetTsPersonIdTests 1✅ 21s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UnlockTeacherRecordTests 3✅ 43s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherIdentityInfoTests 1✅ 9s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherTests 116✅ 647s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.ApproveIncidentTests 1✅ 37s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CancelIncidentTests 1✅ 35s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateDateOfBirthChangeIncidentTests 1✅ 35s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateNameChangeIncidentTests 1✅ 37s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetActiveIncidentsTests 1✅ 39s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSanctionCodesTests 1✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSubjectsTests 1✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllTeacherStatusesTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactByTrnTests 2✅ 35s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactDetailByIdTests 2✅ 36s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByDateOfBirthTests 1✅ 71s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByLastNameAndDateOfBirthTests 1✅ 53s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByNameTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetDocumentByIdTests 2✅ 34s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetIncidentByTicketNumberTests 3✅ 57s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionsByContactIdsTests 9✅ 437s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.RejectIncidentTests 1✅ 35s
TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests 3❌ 3ms

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.ClearTeacherIdentityInfoTests

✅ ContactExistsWithIdentityUserId_ClearsTsPersonId
✅ NoContactWithTsPersonId_Succeeds

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.CreateTeacherTests

✅ CreateInductionEntity(inductionRequired: False, recognitionRoute: NorthernIreland, expectedInductionStatus: Exempt, expectedInductionExemptionReason: SuccessfullycompletedinductioninNorthernIreland)
✅ CreateInductionEntity(inductionRequired: False, recognitionRoute: OverseasTrainedTeachers, expectedInductionStatus: Exempt, expectedInductionExemptionReason: OverseasTrainedTeacher)
✅ CreateInductionEntity(inductionRequired: False, recognitionRoute: Scotland, expectedInductionStatus: Exempt, expectedInductionExemptionReason: HasoriseligibleforfullregistrationinScotland)
✅ CreateInductionEntity(inductionRequired: True, recognitionRoute: NorthernIreland, expectedInductionStatus: RequiredtoComplete, expectedInductionExemptionReason: null)
✅ CreateInductionEntity(inductionRequired: True, recognitionRoute: OverseasTrainedTeachers, expectedInductionStatus: RequiredtoComplete, expectedInductionExemptionReason: null)
✅ CreateInductionEntity(inductionRequired: True, recognitionRoute: Scotland, expectedInductionStatus: RequiredtoComplete, expectedInductionExemptionReason: null)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Apprenticeship, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: AssessmentOnlyRoute, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Core, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: CoreFlexible, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: FutureTeachingScholars, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: GraduateTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: HEI, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: LicensedTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: OverseasTrainedTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Providerled_postgrad, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Providerled_undergrad, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: RegisteredTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: SchoolDirecttrainingprogramme_Salaried, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: SchoolDirecttrainingprogramme_Selffunded, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: SchoolDirecttrainingprogramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: TeachFirstProgramme_CC, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: TeachFirstProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: UndergraduateOptIn, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Apprenticeship, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: AssessmentOnlyRoute, expectedResult: UnderAssessment)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Core, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: CoreFlexible, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTAssessmentOnly, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTGraduateEmploymentBased, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTGraduateEntry, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTSchoolDirect_EarlyYears, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTUndergraduate, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: FutureTeachingScholars, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: GraduateTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: HEI, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: HighpotentialITT, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: LicensedTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: OverseasTrainedTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Providerled_postgrad, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Providerled_undergrad, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: RegisteredTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: SchoolDirecttrainingprogramme_Salaried, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: SchoolDirecttrainingprogramme_Selffunded, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: SchoolDirecttrainingprogramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: TeachFirstProgramme_CC, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: TeachFirstProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: UndergraduateOptIn, expectedResult: InTraining)
✅ CreateQtsRegistrationEntity
✅ CreateQualificationEntity
✅ CreateTeacherEntity_maps_contact_record_correctly
✅ DeriveIttProviderNameForOverseasQualifiedTeacher(recognitionRoute: NorthernIreland, expectedIttProviderName: "UK establishment (Scotland/Northern Ireland)")
✅ DeriveIttProviderNameForOverseasQualifiedTeacher(recognitionRoute: OverseasTrainedTeachers, expectedIttProviderName: "Non-UK establishment")
✅ DeriveIttProviderNameForOverseasQualifiedTeacher(recognitionRoute: Scotland, expectedIttProviderName: "UK establishment (Scotland/Northern Ireland)")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: EuropeanEconomicArea, underNewOverseasRegulations: null, programmeType: null, expectedTeacherStatus: "223")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: NorthernIreland, underNewOverseasRegulations: null, programmeType: null, expectedTeacherStatus: "69")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: OverseasTrainedTeachers, underNewOverseasRegulations: False, programmeType: null, expectedTeacherStatus: "103")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: OverseasTrainedTeachers, underNewOverseasRegulations: True, programmeType: null, expectedTeacherStatus: "104")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: Scotland, underNewOverseasRegulations: null, programmeType: null, expectedTeacherStatus: "68")
✅ DeriveTeacherStatus(teacherType: TraineeTeacher, recognitionRoute: null, underNewOverseasRegulations: null, programmeType: AssessmentOnlyRoute, expectedTeacherStatus: "212")
✅ DeriveTeacherStatus(teacherType: TraineeTeacher, recognitionRoute: null, underNewOverseasRegulations: null, programmeType: GraduateTeacherProgramme, expectedTeacherStatus: "211")
⚪ FindExistingTeacher_given_at_least_three_matching_fields_returns_matched_id
✅ Given_details_that_do_not_match_existing_records_allocates_trn_and_does_not_create_QTS_task
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: OverseasQualifiedTeacher, husId: null, hasActiveSanctions: False, hasQts: False, hasEyts: False, expectedDescriptionSupplement: "", expectedCategory: "ApplyForQts")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: False, hasQts: False, hasEyts: False, expectedDescriptionSupplement: "", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: False, hasQts: False, hasEyts: True, expectedDescriptionSupplement: "Matched record has EYTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: False, hasQts: True, hasEyts: False, expectedDescriptionSupplement: "Matched record has QTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: True, hasQts: False, hasEyts: False, expectedDescriptionSupplement: "Matched record has active sanctions\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: True, hasQts: False, hasEyts: True, expectedDescriptionSupplement: "Matched record has active sanctions & EYTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: True, hasQts: True, hasEyts: False, expectedDescriptionSupplement: "Matched record has active sanctions & QTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_husid_does_not_exist_request_succeeds_and_does_not_creates_review_task
✅ Given_husid_exists_request_succeeds_and_creates_review_task
✅ Given_invalid_HeQualificationValue_returns_failed
✅ Given_invalid_IttQualificationValue_returns_failed
✅ Given_itt_provider_ukprn_that_is_not_found_returns_failed
✅ Given_itt_slugid_exists_request_succeeds_and_creates_review_task
✅ Given_minimal_details_request_succeeds
✅ Given_name_containing_digits_creates_review_task(firstName: "Jo3e", middleName: "3X", lastName: "Bloggs", expectedDescription: "First name and middle name contain a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe", middleName: "X", lastName: "Bloggs3", expectedDescription: "Last name contains a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe", middleName: "X3", lastName: "Blog3gs", expectedDescription: "Middle name and last name contain a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe", middleName: "X3", lastName: "Bloggs", expectedDescription: "Middle name contains a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe3", middleName: "X", lastName: "Bloggs", expectedDescription: "First name contains a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe3", middleName: "X", lastName: "Bloggs3", expectedDescription: "First name and last name contain a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe3", middleName: "X3", lastName: "Bloggs3", expectedDescription: "First name, middle name and last name contain a di"···)
✅ Given_no_specified_qualification_type_creates_qualification_with_default_type
✅ Given_OverseasQualifiedTeacher_teacher_creates_induction_entity
✅ Given_qualification_subject2_that_is_not_found_returns_failed
✅ Given_qualification_subject3_that_is_not_found_returns_failed
✅ Given_record_successfully_created_itt_programmestartdate_and_programmeenddate_matches_request
✅ Given_slugid_does_not_exist_request_succeeds_and_does_not_creates_review_task
✅ Given_specified_qualification_type_creates_qualification_with_type
✅ Given_teacher_slugid_exists_request_succeeds_and_creates_review_task
✅ Given_Trainee_teacher_does_not_create_induction_entity
✅ Given_valid_request_creates_required_entities(programmeType: AssessmentOnlyRoute)
✅ Given_valid_request_creates_required_entities(programmeType: EYITTAssessmentOnly)
✅ Given_valid_request_creates_required_entities(programmeType: LicensedTeacherProgramme)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.FindTeachersTests

✅ Given_3_matching_identifiers_and_one_mismatching_identifier_returns_match
✅ Given_3_matching_identifiers_returns_match
✅ Given_4_matching_identifiers_returns_match
✅ Given_less_than_3_identifiers_returns_no_matches

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetCountryTests

✅ Given_invalid_country_code_returns_null
✅ Given_valid_country_code_returns_country

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEarlyYearsStatusTests

✅ Given_invalid_value_returns_null
✅ Given_valid_value_returns_entity

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEytsAwardeesForDateRangeTests

✅ GetEytsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedQtsAwardees
✅ GetEytsAwardeesForDateRange_WhenCalledForFixedDataInBuildEnvironment_ReturnsExpectedQtsAwardees

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeQualificationByCodeTests

✅ Given_invalid_qualification_name_returns_null
✅ Given_valid_qualification_name_returns_country

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeSubjectByCodeTests

✅ Given_invalid_subject_name_returns_null
✅ Given_valid_subject_name_returns_country

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests

✅ Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 0)
✅ Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 1)
❌ Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 2)
	Assert.Equal() Failure: Values differ
	Expected: 1996-02-03T00:00:00.0000000Z
	Actual:   1996-04-06T00:00:00.0000000Z

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionCompleteesForDateRangeTests

✅ GetInductionCompleteesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedQtsAwardees

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInitialTeacherTrainingByTeacherTests

✅ Given_active_and_inactive_itt_records_are_returned_when_passing_includeInactive
✅ Given_inactive_itt_record_not_returned_by_default
✅ Given_IttDataExistsForTeacher_ReturnsExpectedColumnValues

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInternationalQtsAwardeesForDateRangeTests

✅ GetInternationalQtsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedInternationalQtsAwardees

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttProvidersTests

✅ Returns_providers

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttSubjectByCodeTests

✅ Given_invalid_subject_name_returns_null
✅ Given_valid_subject_name_returns_country

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetMatchingTeachersTests

✅ Given_matching_national_insurance_number_and_matching_birth_date_and_different_matching_TRN_return_teacher
✅ Given_matching_national_insurance_number_and_matching_birth_date_and_matching_TRN_return_teacher
✅ Given_matching_national_insurance_number_and_matching_birth_date_but_non_matching_TRN_return_teacher
✅ Given_matching_national_insurance_number_but_non_matching_TRN_and_non_matching_birth_date_return_empty
✅ Given_matching_TRN_and_matching_birth_date_but_non_matching_national_insurance_number_return_teacher
✅ Given_matching_TRN_and_matching_birth_date_return_unique_teacher
✅ Given_matching_TRN_and_matching_national_insurance_number_but_non_matching_birth_date_return_empty
✅ Given_matching_TRN_but_non_matching_national_insurance_number_and_non_matching_birth_date_return_empty
✅ Given_non_matching_birth_date_return_no_teachers
✅ Given_non_matching_TRN_and_non_matching_birth_date_return_no_teachers
✅ Given_non_matching_TRN_return_no_teachers

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetOrganizationsByUkprnTests

✅ Given_invalid_ukprn_returns_null
✅ Given_valid_ukprn_returns_account

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQtsAwardeesForDateRangeTests

✅ GetQtsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedQtsAwardees
✅ GetQtsAwardeesForDateRange_WhenCalledForFixedDataInBuildEnvironment_ReturnsExpectedQtsAwardees

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationByIdTests

✅ Given_QualificationExistForId_ReturnsExpectedColumnValues(setContactColumnNames: False)
✅ Given_QualificationExistForId_ReturnsExpectedColumnValues(setContactColumnNames: True)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationsForTeacherTests

✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: False, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: False, setSpecialismColumnNames: True)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: True, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: True, setSpecialismColumnNames: True)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: False, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: False, setSpecialismColumnNames: True)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: True, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: True, setSpecialismColumnNames: True)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetSubjectByTitleTests

✅ UnmatchedDescription_ReturnsNull
✅ ValidDescription_ReturnsSubject

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherByHusIdTests

✅ Given_existing_teacher_matches_on_husid_return_teacher
✅ Given_teacher_for_husid_does_not_exist_return_empty_array

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByInitialTeacherTrainingSlugIdTests

✅ Given_multiple_itt_records_exist_with_slugid_return_associated_teachers
✅ Given_no_itt_records_exist_with_slugid_return_empty_collection

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByTrnAndDobTests

✅ Given_existing_teacher_matches_on_dob_and_trn_return_teacher
✅ Given_existing_teacher_matches_only_trn_return_empty_collection

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherStatusTests

✅ Given_invalid_value_returns_null
✅ Given_valid_value_returns_entity

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherTests

✅ Given_merged_teacher_and_resolveMerges_false_return_merged_record
✅ Given_merged_teacher_and_resolveMerges_true_return_master
✅ Given_teacher_that_does_not_exist_returns_null
✅ Given_teacher_that_exists_returns_teacher

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetIttOutcomeForTeacherTests

✅ Given_earlyyears_teacher_is_withdrawn_earlyyearsstatusid_is_set_to_null
✅ Given_existing_eyts_update_with_different_assessment_date_returns_error
✅ Given_existing_eyts_update_with_same_assessment_date_returns_success
✅ Given_existing_qts_update_assessment_date_with_same_assessmentdate_succeeds
✅ Given_existing_qts_update_with_different_assessment_date_returns_error
✅ Given_existing_qts_update_with_same_assessment_date_returns_success
✅ Given_itt_does_not_exist_for_slugid_fallback_to_establishment_matching_return_success
✅ Given_itt_matches_on_slugid_but_not_establishmentid_return_error
✅ Given_itt_record_with_slugid_can_be_updated_using_slugid
✅ Given_teacher_creating_review_task_description_is_correct
✅ Given_teacher_is_failed_cannot_set_result_to_pass
✅ Given_teacher_is_failed_cannot_set_result_to(newResult: Deferred, assessmentDate: null)
✅ Given_teacher_is_failed_cannot_set_result_to(newResult: DeferredforSkillsTests, assessmentDate: null)
✅ Given_teacher_is_failed_cannot_set_result_to(newResult: Withdrawn, assessmentDate: null)
✅ Given_teacher_is_failed_do_not_error_when_request_result_is_fail
✅ Given_teacher_is_withdrawn_teacherstatusid_is_set_to_null
✅ Given_teacher_with_active_sanctions_creates_review_task
✅ Given_teacher_without_active_sanctions_does_not_create_review_task
✅ Given_valid_request_with_non_withdrawn_result_for_early_years_does_not_clear_earlyyearsstatusid(ittResult: Deferred)
✅ Given_valid_request_with_non_withdrawn_result_for_early_years_does_not_clear_earlyyearsstatusid(ittResult: DeferredforSkillsTests)
✅ Given_valid_request_with_non_withdrawn_result_for_early_years_does_not_clear_earlyyearsstatusid(ittResult: Fail)
✅ Given_valid_request_with_non_withdrawn_result_for_teacher_does_not_clear_teacherstatusid(ittResult: Deferred)
✅ Given_valid_request_with_non_withdrawn_result_for_teacher_does_not_clear_teacherstatusid(ittResult: DeferredforSkillsTests)
✅ Given_valid_request_with_non_withdrawn_result_for_teacher_does_not_clear_teacherstatusid(ittResult: Fail)
✅ Given_valid_request_with_Pass_result_for_early_years_updates_qts_and_does_not_create_induction
✅ Given_valid_request_with_Pass_result_for_qts_updates_qts_and_creates_induction(assessmentOnly: False, iqtsProgrammeType: False, expectedTeacherStatus: "71")
✅ Given_valid_request_with_Pass_result_for_qts_updates_qts_and_creates_induction(assessmentOnly: False, iqtsProgrammeType: True, expectedTeacherStatus: "90")
✅ Given_valid_request_with_Pass_result_for_qts_updates_qts_and_creates_induction(assessmentOnly: True, iqtsProgrammeType: False, expectedTeacherStatus: "100")
✅ Given_withdrawn_itt_record_cannot_change_result
✅ SelectIttRecord_given_multiple_matching_itt_records_returns_MultipleMatchingIttRecords(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }, dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }])
✅ SelectIttRecord_given_no_itt_records_returns_NoMatchingIttRecord(records: [])
✅ SelectIttRecord_given_no_itt_records_returns_NoMatchingIttRecord(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }, dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }])
✅ SelectIttRecord_given_no_itt_records_returns_NoMatchingIttRecord(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }])
✅ SelectIttRecord_given_single_matching_itt_record_returns_that_record(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }], expectedResult: dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· })
✅ SelectIttRecord_given_single_matching_itt_record_returns_that_record(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }], expectedResult: dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· })

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetNpqQualificationTests

✅ Given_attempting_to_remove_existing_npq_qualification_completeddate_not_created_by_api_returns_error
✅ Given_create_new_npq_qualification_returns_success(type: NPQEL)
✅ Given_create_new_npq_qualification_returns_success(type: NPQEYL)
✅ Given_create_new_npq_qualification_returns_success(type: NPQH)
✅ Given_create_new_npq_qualification_returns_success(type: NPQLBC)
✅ Given_create_new_npq_qualification_returns_success(type: NPQLL)
✅ Given_create_new_npq_qualification_returns_success(type: NPQLT)
✅ Given_create_new_npq_qualification_returns_success(type: NPQLTD)
✅ Given_create_new_npq_qualification_returns_success(type: NPQSL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQEL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQEYL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQH)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLBC)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLT)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLTD)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQSL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQEL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQEYL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQH)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLBC)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLT)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLTD)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQSL)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQEL)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQEYL)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQH)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQLBC)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQLL)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQLT)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQLTD)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQSL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQEL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQEYL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQH)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLBC)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLT)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLTD)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQSL)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetTsPersonIdTests

✅ Given_valid_id_updates_tspersonid

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UnlockTeacherRecordTests

✅ Given_a_valid_id_sets_loginfailedcounter_to_0_and_returns_true(initialLoginFailedCounter: 5)
✅ Given_a_valid_id_sets_loginfailedcounter_to_0_and_returns_true(initialLoginFailedCounter: null)
✅ Given_an_id_that_does_not_exist_returns_false

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherIdentityInfoTests

✅ Given_UpdatingExistingTeacher_SetsFieldValuesAsExpected

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherTests

✅ Given_AllowPiiUpdatesFromRegister_is_false_and_pii_data_is_provided_discard_changes_pii_changes
✅ Given_contact_slugid_does_not_exist_update_contact_slugid
✅ Given_crm_task_is_created_when_multiple_itt_for_slugid_for_ukprn_description_is_correct
✅ Given_crm_task_is_created_when_multiple_itt_for_ukprn_description_is_correct
✅ Given_crm_task_is_created_when_no_itt_for_ukprn_description_is_correct
✅ Given_crm_task_is_created_when_qualification_is_created_description_is_correct
✅ Given_deferred_asessmentonlyeroute_itt_update_to_InTraining_fails
✅ Given_deferred_assessmentonlyeroute_itt_update_to_UnderAssessment_succeeds
✅ Given_deferred_non_assessmentonlyeroute_itt_update_to_InTraining_succeeds
✅ Given_deferred_non_assessmentonlyeroute_itt_update_UnderAssessment_fails
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Apprenticeship)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: AssessmentOnlyRoute)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Core)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: CoreFlexible)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: FutureTeachingScholars)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: GraduateTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: HEI)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: LicensedTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: OverseasTrainedTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Providerled_postgrad)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Providerled_undergrad)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: RegisteredTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: SchoolDirecttrainingprogramme_Salaried)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: SchoolDirecttrainingprogramme_Selffunded)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: SchoolDirecttrainingprogramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: TeachFirstProgramme_CC)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: TeachFirstProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: UndergraduateOptIn)
✅ Given_existing_contact_update_aor_to_core_and_updates_teacherstatus_to_traineeteacher_returns_success
✅ Given_existing_contact_update_core_to_aor_and_updates_teacherstatus_to_aorcandidate_returns_success
✅ Given_existing_contact_update_itt_and_qualification_returns_success
✅ Given_existing_contact_update_itt_and_qualification_with_existing_active_sanction_returns_success_and_creates_crm_task
✅ Given_existing_itt_not_present_for_provider_return_error
✅ Given_existing_itt_update_programmetype_from_eyts_to_another_eyts_programmetype_succeeds(programmeType: EYITTAssessmentOnly)
✅ Given_existing_itt_update_programmetype_from_eyts_to_another_eyts_programmetype_succeeds(programmeType: EYITTGraduateEmploymentBased)
✅ Given_existing_itt_update_programmetype_from_eyts_to_another_eyts_programmetype_succeeds(programmeType: EYITTGraduateEntry)
✅ Given_existing_itt_update_programmetype_from_eyts_to_another_eyts_programmetype_succeeds(programmeType: EYITTSchoolDirect_EarlyYears)
✅ Given_existing_itt_update_programmetype_from_eyts_to_another_eyts_programmetype_succeeds(programmeType: EYITTUndergraduate)
✅ Given_existing_itt_update_programmetype_from_qts_to_another_qts_programmetype_succeeds
✅ Given_failed_eyts_itt_record_cannot_change_result_to(ittResult: Fail)
✅ Given_failed_eyts_itt_record_cannot_change_result_to(ittResult: Pass)
✅ Given_failed_eyts_itt_record_cannot_change_result_to(ittResult: Withdrawn)
✅ Given_failed_itt_record_passing_result_returns_error(eyts: False, asessmentonlyroute: False, programmetype: RegisteredTeacherProgramme, ittResult: Deferred)
✅ Given_failed_itt_record_passing_result_returns_error(eyts: False, asessmentonlyroute: True, programmetype: AssessmentOnlyRoute, ittResult: UnderAssessment)
✅ Given_failed_itt_record_passing_result_returns_error(eyts: True, asessmentonlyroute: False, programmetype: EYITTAssessmentOnly, ittResult: InTraining)
✅ Given_intraining_eyts_itt_record_cannot_change_result_to(ittResult: Deferred)
✅ Given_intraining_eyts_itt_record_cannot_change_result_to(ittResult: InTraining)
✅ Given_intraining_eyts_itt_record_cannot_passing_result_returns_error(ittResult: Fail)
✅ Given_intraining_eyts_itt_record_cannot_passing_result_returns_error(ittResult: Pass)
✅ Given_intraining_eyts_itt_record_cannot_passing_result_returns_error(ittResult: Withdrawn)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "001", qualificationCountryCode: "INVALID COUNTRY CODE", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: QualificationCountryNotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "NOT VALID SUBJECT3", expectedFailedReasons: QualificationSubject3NotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "NOT VALID SUBJECT2", qualificationSubject3: "X300", expectedFailedReasons: QualificationSubject2NotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "xxx", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: QualificationNotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "Invalid Qualification subject", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: QualificationSubjectNotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "xxx", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: IttQualificationNotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "100403", ittSubject3: "Invalid subject3", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: Subject3NotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "100302", ittSubject2: "Invalid subject2", ittSubject3: "100403", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: Subject2NotFound)
✅ Given_invalid_reference_data_request_fails(ittSubject1: "Invalid Subject1", ittSubject2: "100403", ittSubject3: "100366", ittQualificationCode: "001", qualificationCountryCode: "XK", qualificationSubject: "100366", heQualificationCode: "400", qualificationSubject2: "N400", qualificationSubject3: "X300", expectedFailedReasons: Subject1NotFound)
✅ Given_itt_cannot_change_eyts_programmetype_to_qts
✅ Given_itt_record_passing_result_returns_error(eyts: False, asessmentonlyroute: False, programmetype: RegisteredTeacherProgramme, ittResult: Fail)
✅ Given_itt_record_passing_result_returns_error(eyts: False, asessmentonlyroute: True, programmetype: AssessmentOnlyRoute, ittResult: Pass)
✅ Given_itt_record_passing_result_returns_error(eyts: True, asessmentonlyroute: False, programmetype: EYITTAssessmentOnly, ittResult: Withdrawn)
✅ Given_passed_eyts_itt_record_cannot_change_result_to(ittResult: Deferred)
✅ Given_passed_eyts_itt_record_cannot_change_result_to(ittResult: Fail)
✅ Given_passed_eyts_itt_record_cannot_change_result_to(ittResult: InTraining)
✅ Given_passed_eyts_itt_record_cannot_change_result_to(ittResult: Pass)
✅ Given_passed_eyts_itt_record_cannot_change_result_to(ittResult: UnderAssessment)
✅ Given_passed_eyts_itt_record_cannot_change_result_to(ittResult: Withdrawn)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTAssessmentOnly)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTGraduateEmploymentBased)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTGraduateEntry)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTSchoolDirect_EarlyYears)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTUndergraduate)
✅ Given_slugid_is_not_provided_do_not_clear_contact_slugid
✅ Given_teacher_has_an_identity_ignore_email_address_updates
✅ Given_two_or_more_itt_assessmentonly_records_for_two_providers_return_error(res: Deferred)
✅ Given_two_or_more_itt_assessmentonly_records_for_two_providers_return_error(res: Fail)
✅ Given_two_or_more_itt_assessmentonly_records_for_two_providers_return_error(res: UnderAssessment)
✅ Given_two_or_more_itt_assessmentonly_records_for_two_providers_return_error(res: Withdrawn)
✅ Given_two_or_more_itt_earlyyears_records_for_same_provider_return_error
✅ Given_two_or_more_itt_earlyyears_records_for_two_providers_return_error(res: Deferred)
✅ Given_two_or_more_itt_earlyyears_records_for_two_providers_return_error(res: Fail)
✅ Given_two_or_more_itt_earlyyears_records_for_two_providers_return_error(res: InTraining)
✅ Given_two_or_more_itt_earlyyears_records_for_two_providers_return_error(res: Withdrawn)
✅ Given_two_or_more_qualifications_does_not_create_new_qualification_and_creates_warning_crm_task
✅ Given_update_itt_and_qualification_with_noactive_sanctions_does_not_create_crm_task_and_returns_success
✅ Given_update_using_slugid_and_changed_ittproviderukprn_updates_itt_providerukprn
✅ Given_update_using_slugid_and_different_ukprn_falls_back_to_matching_using_ittproviderukprn_retuns_error
✅ Given_update_with_changed_husid_updates_contact
✅ Given_update_with_multiple_itt_records_with_same_slugid_request_fails
✅ Given_update_with_slugid_falls_back_to_matching_using_ittproviderukprn_retuns_record
✅ Given_update_with_unknown_itt_provider_request_fails
✅ Given_update_without_providing_qualification_ukprn_returns_success
✅ Given_update_without_qualification_returns_success
✅ Given_update_without_using_slugid_and_changed_ittproviderukprn_retuns_error
✅ Given_updating_existing_contact_update_without_subject3_returns_success
✅ Given_updating_existing_teacher_does_not_change_itt_result
✅ Given_withdrawn_assessmentonlyroute_itt_record_can_unwithdraw_record(ittResult: UnderAssessment)
✅ Given_withdrawn_assessmentonlyroute_itt_record_cannot_unwithdraw_record_to_result(ittResult: Fail)
✅ Given_withdrawn_assessmentonlyroute_itt_record_cannot_unwithdraw_record_to_result(ittResult: Pass)
✅ Given_withdrawn_assessmentonlyroute_itt_record_cannot_unwithdraw_to_deferred
✅ Given_withdrawn_assessmentonlyroute_itt_record_passing_withdrawn_returns_success_without_updating
✅ Given_withdrawn_assessmentonlyroute_with_none_empty_teacherstatus_fail
✅ Given_withdrawn_eyts_itt_record_can_unwithdraw_record(ittResult: InTraining)
✅ Given_withdrawn_eyts_itt_record_cannot_unwithdraw_record_to_result(ittResult: Fail)
✅ Given_withdrawn_eyts_itt_record_cannot_unwithdraw_record_to_result(ittResult: Pass)
✅ Given_withdrawn_eyts_itt_record_cannot_unwithdraw_to_deferred
✅ Given_withdrawn_eyts_itt_record_passing_withdrawn_returns_success_without_updating
✅ Given_withdrawn_eyts_with_none_empty_earlyyearsteacherstatus_fail
✅ Given_withdrawn_qts_itt_record_can_unwithdraw_record(ittResult: InTraining)
✅ Given_withdrawn_qts_itt_record_cannot_unwithdraw_record_to_result(ittResult: Fail)
✅ Given_withdrawn_qts_itt_record_cannot_unwithdraw_record_to_result(ittResult: Pass)
✅ Given_withdrawn_qts_itt_record_cannot_unwithdraw_to_deferred
✅ Given_withdrawn_qts_itt_record_passing_withdrawn_returns_success_without_updating
✅ Given_withdrawn_qts_with_none_empty_teacherstatus_fail

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.ApproveIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CancelIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateDateOfBirthChangeIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateNameChangeIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetActiveIncidentsTests

✅ ReturnsActiveIncidentsOnly

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSanctionCodesTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSubjectsTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllTeacherStatusesTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactByTrnTests

✅ WhenCalled_WithTrnForExistingContact_ReturnsContactDetail
✅ WhenCalled_WithTrnForNonExistentContact_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactDetailByIdTests

✅ WhenCalled_WithContactIdForExistingContact_ReturnsContactDetail
✅ WhenCalled_WithContactIdForNonExistentContact_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByDateOfBirthTests

✅ ReturnsMatchingContactsFromCrm

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByLastNameAndDateOfBirthTests

✅ ReturnsMatchingContactsFromCrm

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByNameTests

✅ ReturnsMatchingContactsFromCrm

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetDocumentByIdTests

✅ WhenCalled_WithDocumentIdForExistingDocument_ReturnsDocument
✅ WhenCalled_WithDocumentIdForNonExistentDocument_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetIncidentByTicketNumberTests

✅ WhenCalled_ForIncidentWithMultipleDocument_ReturnsSingleIncidentAndMultipleDocuments
✅ WhenCalled_ForIncidentWithSingleDocument_ReturnsSingleIncidentAndSingleDocument
✅ WhenCalled_WithTicketNumberForNonExistentIncident_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionsByContactIdsTests

✅ EndedSanctionIsReturnedAsExpected(ended: False, activeOnly: False, expectSanctionReturned: True)
✅ EndedSanctionIsReturnedAsExpected(ended: False, activeOnly: True, expectSanctionReturned: True)
✅ EndedSanctionIsReturnedAsExpected(ended: True, activeOnly: False, expectSanctionReturned: True)
✅ EndedSanctionIsReturnedAsExpected(ended: True, activeOnly: True, expectSanctionReturned: False)
✅ ReturnsSanctionsForEachContactIdSpecified
✅ SpentSanctionIsReturnedAsExpected(spent: False, activeOnly: False, expectSanctionReturned: True)
✅ SpentSanctionIsReturnedAsExpected(spent: False, activeOnly: True, expectSanctionReturned: True)
✅ SpentSanctionIsReturnedAsExpected(spent: True, activeOnly: False, expectSanctionReturned: True)
✅ SpentSanctionIsReturnedAsExpected(spent: True, activeOnly: True, expectSanctionReturned: False)

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.RejectIncidentTests

✅ QueryExecutesSuccessfully

❌ TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests

❌ ProcessChangesForEntityType_DeletesRemovedRecordFromDatabase
	Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
❌ ProcessChangesForEntityType_WritesNewRecordToDatabase
	Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
❌ ProcessChangesForEntityType_WritesUpdatedRecordToDatabase
	Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.

Annotations

Check failure on line 175 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/DataverseAdapterTests/GetInductionByTeacherTests.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests ► Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 2)

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az674-469_2023-09-15_12_16_01.trx
Error:
  Assert.Equal() Failure: Values differ
  Expected: 1996-02-03T00:00:00.0000000Z
  Actual:   1996-04-06T00:00:00.0000000Z
Raw output
Assert.Equal() Failure: Values differ
Expected: 1996-02-03T00:00:00.0000000Z
Actual:   1996-04-06T00:00:00.0000000Z
   at TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests.Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(Int32 numberOfInductionPeriods) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/DataverseAdapterTests/GetInductionByTeacherTests.cs:line 175

Check failure on line 57 in TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrator.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests ► ProcessChangesForEntityType_DeletesRemovedRecordFromDatabase

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az674-469_2023-09-15_12_16_01.trx
Error:
  Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
Raw output
Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
   at TeachingRecordSystem.Core.Dqt.Services.DqtReporting.Migrator.MigrateDb() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrator.cs:line 57
   at TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingFixture..ctor(IConfiguration configuration, ServiceClient serviceClient, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/Services/DqtReporting/DqtReportingFixture.cs:line 29
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 57 in TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrator.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests ► ProcessChangesForEntityType_WritesNewRecordToDatabase

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az674-469_2023-09-15_12_16_01.trx
Error:
  Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
Raw output
Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
   at TeachingRecordSystem.Core.Dqt.Services.DqtReporting.Migrator.MigrateDb() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrator.cs:line 57
   at TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingFixture..ctor(IConfiguration configuration, ServiceClient serviceClient, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/Services/DqtReporting/DqtReportingFixture.cs:line 29
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 57 in TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrator.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests ► ProcessChangesForEntityType_WritesUpdatedRecordToDatabase

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az674-469_2023-09-15_12_16_01.trx
Error:
  Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
Raw output
Microsoft.Data.SqlClient.SqlException : Invalid object name 'msa_managingpartneridyominame.columns'.
   at TeachingRecordSystem.Core.Dqt.Services.DqtReporting.Migrator.MigrateDb() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrator.cs:line 57
   at TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingFixture..ctor(IConfiguration configuration, ServiceClient serviceClient, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/Services/DqtReporting/DqtReportingFixture.cs:line 29
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)