Replace Swashbuckle #3179
Replace Swashbuckle #3179
17 passed, 272 failed and 1 skipped
❌ TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
290 tests were completed in 35s with 17 passed, 272 failed and 1 skipped.
❌ TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests
❌ Given_invalid_birthdate_returns_error(birthDate: "xxx")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Given_invalid_trn_returns_error(trn: "123456")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Given_invalid_trn_returns_error(trn: "12345678")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Given_invalid_trn_returns_error(trn: "xxx")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Given_match_returns_ok
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Given_multiple_matches_returns_match_on_TRN
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Given_no_match_found_returns_notfound
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V1.SwaggerTests
❌ Get_SwaggerEndpoint_ReturnsOk
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V2.SwaggerTests
❌ Get_SwaggerEndpoint_ReturnsOk
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.SwaggerTests
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240101")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240307")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240412")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240416")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240606")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240814")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240912")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240920")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20250203")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20250327")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20250425")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20250627")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20250804")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20250905")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20260120")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20260224")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_SwaggerEndpoint_ReturnsOk(minorVersion: "Next")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240101.FindTeachersTests
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["AppropriateBody"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["AssignQtls"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["CreateTrn"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetCpdInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetProfessionalStatus"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetWelshInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UnlockPerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateNpq"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdatePerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateRole"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_InvalidFindBy_ReturnsError(findBy: "", expectedErrorMessage: "Invalid matching policy.")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_InvalidFindBy_ReturnsError(findBy: "BadFindBy", expectedErrorMessage: "The value 'BadFindBy' is not valid for FindBy.")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_MissingPropertiesForFindBy_ReturnsError(lastName: "", dateOfBirth: "1990-01-01", expectedErrorPropertyName: "lastName", expectedErrorMessage: "A value is required when findBy is 'LastNameAndDat"···)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_MissingPropertiesForFindBy_ReturnsError(lastName: "Smith", dateOfBirth: "", expectedErrorPropertyName: "dateOfBirth", expectedErrorMessage: "A value is required when findBy is 'LastNameAndDat"···)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_NonExposableSanctionCode_IsNotReturned
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ValidRequestWithMatchesOnLastName_ReturnsMappedContacts
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ValidRequestWithMatchOnPreviousName_ReturnsMappedContacts
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240416.GetTeacherByTrnTests
❌ Get_DateOfBirthDoesNotMatchTeachingRecord_ReturnsNotFound
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_DateOfBirthMatchesTeachingRecord_ReturnsOk
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_DateOfBirthNotProvided_ReturnsOk
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240606.CreateDateOfBirthChangeTests
❌ Post_EvidenceFileDoesNotExist_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newDateOfBirthString: "1990-07-01", evidenceFileName: "evidence.jpg", evidenceFileUrl: "https://place.com/evidence.jpg")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newDateOfBirthString: "1990-07-01", evidenceFileName: "evidence.jpg", evidenceFileUrl: null)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newDateOfBirthString: "1990-07-01", evidenceFileName: null, evidenceFileUrl: "https://place.com/evidence.jpg")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newDateOfBirthString: null, evidenceFileName: "evidence.jpg", evidenceFileUrl: "https://place.com/evidence.jpg")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_TeacherWithTrnDoesNotExist_ReturnsBadRequest
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_ValidRequest_CreatesSupportTaskAndSendsEmailAndReturnsTicketNumber
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240606.CreateNameChangeTests
❌ Post_EvidenceFileDoesNotExist_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newFirstName: "First", newMiddleName: "Middle", newLastName: "Last", evidenceFileName: "evidence.jpg", evidenceFileUrl: null)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newFirstName: "First", newMiddleName: "Middle", newLastName: "Last", evidenceFileName: null, evidenceFileUrl: "https://place.com/evidence.jpg")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newFirstName: "First", newMiddleName: "Middle", newLastName: null, evidenceFileName: "evidence.jpg", evidenceFileUrl: "https://place.com/evidence.jpg")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_InvalidRequest_ReturnsBadRequest(newFirstName: null, newMiddleName: "Middle", newLastName: "Last", evidenceFileName: "evidence.jpg", evidenceFileUrl: "https://place.com/evidence.jpg")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Post_ValidRequest_CreatesSupportTaskAndSendsEmailAndReturnsTicketNumber
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240606.FindPersonByLastNameAndDateOfBirthTests
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["AppropriateBody"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["AssignQtls"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["CreateTrn"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetCpdInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetProfessionalStatus"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetWelshInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UnlockPerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateNpq"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdatePerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateRole"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_InvalidFindBy_ReturnsError(findBy: "", expectedErrorMessage: "Invalid matching policy.")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_InvalidFindBy_ReturnsError(findBy: "BadFindBy", expectedErrorMessage: "The value 'BadFindBy' is not valid for FindBy.")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_MissingPropertiesForFindBy_ReturnsError(lastName: "", dateOfBirth: "1990-01-01", expectedErrorPropertyName: "lastName", expectedErrorMessage: "A value is required when findBy is 'LastNameAndDat"···)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_MissingPropertiesForFindBy_ReturnsError(lastName: "Smith", dateOfBirth: "", expectedErrorPropertyName: "dateOfBirth", expectedErrorMessage: "A value is required when findBy is 'LastNameAndDat"···)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_NonExposableSanctionCode_IsNotReturned
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ValidRequestWithMatchesOnLastName_ReturnsMappedContacts
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ValidRequestWithMatchOnPreviousName_ReturnsMappedContacts
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240912.GetQtlsDateRequestTests
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["AppropriateBody"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["CreateTrn"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["GetPerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetCpdInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetProfessionalStatus"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetWelshInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UnlockPerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateNpq"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdatePerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateRole"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_NoQtls_ReturnsExpectedResult
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_TrnNotFound_ReturnsNotFound
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithQtls_ReturnsExpectedResult
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240912.SetQtlsDateRequestTests
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["AppropriateBody"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["CreateTrn"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["GetPerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetCpdInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetProfessionalStatus"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["SetWelshInduction"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UnlockPerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateNpq"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdatePerson"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ClientDoesNotHavePermission_ReturnsForbidden(roles: ["UpdateRole"])
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_NullQtlsDateWithExistingQtlsDate_ReturnsOk
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_QtlsDateInFuture_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_TrnNotFound_ReturnsNotFound
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ValidQtsDateWithNoExistingQtsDate_ReturnsOk
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240920.FindPersonByLastNameAndDateOfBirthTests
❌ Get_ValidRequestWithMatchOnPersonWithAlerts_ReturnsExpectedAlertsContent
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240920.FindPersonsByTrnAndDateOfBirthTests
❌ Get_ValidRequestWithMatchOnPersonWithAlerts_ReturnsExpectedAlertsContent
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20240920.GetPersonTests
❌ Get_ValidRequestWithAlerts_ReturnsExpectedAlertsContent
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20250203.FindPersonByLastNameAndDateOfBirthTests
❌ Get_PersonHasNonNullDqtInductionStatus_ReturnsExpectedStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_PersonHasNullDqtInductionStatus_ReturnsNoneInductionStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_QtsAndActiveQtls_ReturnsQtsStatusOfEarliestOfDates(qtlsDateStr: "01/01/2019", qtsDateStr: "01/01/1999", expectedStatusDescription: "Qualified", expectedAwardedDate: "1999-01-01")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_QtsAndActiveQtls_ReturnsQtsStatusOfEarliestOfDates(qtlsDateStr: "01/01/2019", qtsDateStr: "01/01/2022", expectedStatusDescription: "Qualified Teacher Learning and Skills status", expectedAwardedDate: "2019-01-01")
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithExpiredQtlsDate_ReturnsExpiredQtlsStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithoutQtlsDate_ReturnsNoneQtlsStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithQtlsDate_ReturnsActiveQtlsStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20250203.FindPersonsByTrnAndDateOfBirthTests
❌ Get_PersonHasNonNullDqtInductionStatus_ReturnsExpectedStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_PersonHasNullDqtInductionStatus_ReturnsNoneInductionStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithExpiredQtlsDate_ReturnsExpiredQtlsStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithoutQtlsDate_ReturnsNoneQtlsStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Get_WithQtlsDate_ReturnsActiveQtlsStatus
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ TeachingRecordSystem.Api.IntegrationTests.V3.V20250203.SetCpdInductionStatusTests
❌ Put_FailedWithoutCompletedDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_FailedWithoutStartDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_InProgressWithCompletedDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_InProgressWithoutStartDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_PassedWithoutCompletedDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_PassedWithoutStartDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_PersonDoesNotExist_ReturnsNotFound
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_PersonDoesNotHaveQts_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_RequiredToCompleteWithCompletedDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_RequiredToCompleteWithStartDate_ReturnsError
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_StatusIsInvalid_ReturnsError(status: Exempt)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_StatusIsInvalid_ReturnsError(status: FailedInWales)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_StatusIsInvalid_ReturnsError(status: None)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_TimestampIsBeforePreviousUpdate_ReturnsConflict
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_UserDoesNotHavePermission_ReturnsForbidden
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ValidRequestWithFailed_UpdatesDbAndReturnsNoContent(currentStatus: Exempt)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ValidRequestWithFailed_UpdatesDbAndReturnsNoContent(currentStatus: Failed)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ValidRequestWithFailed_UpdatesDbAndReturnsNoContent(currentStatus: FailedInWales)
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
❌ Put_ValidRequestWithFailed_UpdatesDbAndReturnsNoContent(currentStatus: InProgress)
Report exceeded GitHub limit of 65535 bytes and has been trimmed
Annotations
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_invalid_birthdate_returns_error(birthDate: "xxx")
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_invalid_birthdate_returns_error(String birthDate) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 35
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_invalid_trn_returns_error(trn: "123456")
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_invalid_trn_returns_error(String trn) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 20
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_invalid_trn_returns_error(trn: "12345678")
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_invalid_trn_returns_error(String trn) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 20
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_invalid_trn_returns_error(trn: "xxx")
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_invalid_trn_returns_error(String trn) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 20
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_match_returns_ok
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_match_returns_ok() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 68
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_multiple_matches_returns_match_on_TRN
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_multiple_matches_returns_match_on_TRN() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 87
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests ► Given_no_match_found_returns_notfound
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.Operations.GetTeacherTests.Given_no_match_found_returns_notfound() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/Operations/GetTeacherTests.cs:line 51
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V1.SwaggerTests ► Get_SwaggerEndpoint_ReturnsOk
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V1.SwaggerTests.Get_SwaggerEndpoint_ReturnsOk() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V1/SwaggerTests.cs:line 17
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V2.SwaggerTests ► Get_SwaggerEndpoint_ReturnsOk
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V2.SwaggerTests.Get_SwaggerEndpoint_ReturnsOk() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V2/SwaggerTests.cs:line 17
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V3.SwaggerTests ► Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240101")
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V3.SwaggerTests.Get_SwaggerEndpoint_ReturnsOk(String minorVersion) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V3/SwaggerTests.cs:line 16
--- End of stack trace from previous location ---
github-actions / Api.IntegrationTests test results
TeachingRecordSystem.Api.IntegrationTests.V3.SwaggerTests ► Get_SwaggerEndpoint_ReturnsOk(minorVersion: "20240307")
Failed test found in:
TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/TestResults/_runnervmnelt9_2026-02-27_16_30_36.trx
Error:
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
Raw output
System.InvalidOperationException : Duplicate endpoint name 'GetPersonByTrn' found on 'TeachingRecordSystem.Api.V3.V20250627.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)' and 'TeachingRecordSystem.Api.V3.V20260120.Controllers.PersonsController.GetAsync (TeachingRecordSystem.Api)'. Endpoint names must be globally unique.
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher.CreateMatcher(IReadOnlyList`1 endpoints)
at Microsoft.AspNetCore.Routing.DataSourceDependentCache`1.Initialize()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher..ctor(EndpointDataSource dataSource, Lifetime lifetime, Func`1 matcherBuilderFactory)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcherFactory.CreateMatcher(EndpointDataSource dataSource)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.InitializeCoreAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|10_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
at TeachingRecordSystem.Api.Infrastructure.Middleware.AssignRequestedVersionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Api/Infrastructure/Middleware/AssignRequestedVersionMiddleware.cs:line 20
at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
at TeachingRecordSystem.Api.IntegrationTests.HostFixture.ExecuteScheduledJobsStartupFilter.<>c.<<Configure>b__0_1>d.MoveNext() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/HostFixture.cs:line 192
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Testing.Handlers.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at TeachingRecordSystem.Api.IntegrationTests.V3.SwaggerTests.Get_SwaggerEndpoint_ReturnsOk(String minorVersion) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Api.IntegrationTests/V3/SwaggerTests.cs:line 16
--- End of stack trace from previous location ---