Skip to content

Adds implementation for local date time #519

Adds implementation for local date time

Adds implementation for local date time #519

Triggered via pull request February 7, 2025 14:02
Status Failure
Total duration 5m 57s
Artifacts

check-pull-request.yml

on: pull_request
Run Pull Request Checks
5m 49s
Run Pull Request Checks
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
Btms.Backend.IntegrationTests.LocalDateTests.ShouldBeCorrectInBtmsClient: Btms.Backend.IntegrationTests/LocalDateTests.cs#L33
Expected Client.GetSingleImportNotification().PartOne!.DepartedOn to be in Unspecified, but found Utc.
Btms.Backend.IntegrationTests.LocalDateTests.ShouldBeCorrectInApi: Btms.Backend.IntegrationTests/LocalDateTests.cs#L27
Expected result "{ "links": { "self": "/api/import-notifications?fields[import-notifications]=partOne", "first": "/api/import-notifications?fields%5Bimport-notifications%5D=partOne", "last": "/api/import-notifications?fields%5Bimport-notifications%5D=partOne" }, "data": [ { "type": "import-notifications", "id": "CHEDA.GB.2025.000207000001", "attributes": { "partOne": { "typeOfImp": null, "personResponsible": { "id": null, "name": "Mark Admin-Tester", "companyId": "767ceb6a-2144-e911-a96c-000d3a29b5de", "contactId": "79f6dc68-2144-e911-a96a-000d3a29ba60", "companyName": "Defra Test BIP", "addresses": [ "Animal and Plant Health Agency", "Woodham Lane", "New Haw", "Surrey", "Addlestone", "KT15 3NB" ], "county": null, "postCode": null, "country": "GB", "city": null, "tracesId": 1001, "type": null, "approvalNumber": null, "phone": "020 8225 7295", "fax": null, "email": "[email protected]" }, "customsReferenceNumber": null, "containsWoodPackaging": null, "consignmentArrived": null, "consignor": { "id": "d5eba566-9b57-4580-84fb-d28739fa4719", "type": "Exporter", "status": "Nonapproved", "companyName": "c7f606df309a417da4ec442330ddd52a", "individualName": null, "address": { "street": null, "city": "Lake Cristina", "country": null, "postalCode": null, "addressLine1": "07584 Gillian Mews", "addressLine2": "Apt. 962", "addressLine3": "Idaho", "postalZipCode": "91645", "countryIsoCode": "DE", "email": "[email protected]", "ukTelephone": null, "telephone": "01615555555", "internationalTelephone": null }, "approvalNumber": null, "otherIdentifier": null, "tracesId": 10008591 }, "consignorTwo": null, "packer": null, "consignee": { "id": "803d26e9-ce15-4512-8d99-2b88499880fd", "type": "Consignee", "status": "Nonapproved", "companyName": "aa0863fc325945dcb16247e4cc242f38", "individualName": null, "address": { "street": null, "city": "New Dayanafurt", "country": null, "postalCode": null, "addressLine1": "47107 McCullough Common", "addressLine2": "Suite 139", "addressLine3": "Washington", "postalZipCode": "35150-2", "countryIsoCode": "GB", "email": "[email protected]", "ukTelephone": null, "telephone": "01615555555", "internationalTelephone": null }, "approvalNumber": null, "otherIdentifier": null, "tracesId": 10001806 }, "importer": { "id": "803d26e9-ce15-4512-8d99-2b88499880fd", "type": "Consignee", "status": "Nonapproved", "companyName": "aa0863fc325945dcb16247e4cc242f38", "individualName": null, "address": { "street": null, "city": "New Dayanafurt", "country": null, "postalCode": null, "addressLine1": "47107 McCullough Common", "addressLine2": "Suite 139", "addressLine3": "Washington", "postalZipCode": "35150-2", "countryIsoCode": "GB", "email": "[email protected]", "ukTelephone": null, "telephone": "01615555555",
Btms.Backend.IntegrationTests.LocalDateTests.ShouldBeCorrectInMongoDbContext: Btms.Backend.IntegrationTests/LocalDateTests.cs#L42
Expected BackendFixture.MongoDbContext.Notifications.Single().PartOne!.DepartedOn to be in Unspecified, but found Utc.
Run Pull Request Checks
Process completed with exit code 1.
Run Pull Request Checks: TestGenerator.IntegrationTesting.Backend/MultipleScenarioGeneratorBaseTest.cs#L11
Cannot convert null literal to non-nullable reference type.
Run Pull Request Checks: TestGenerator.IntegrationTesting.Backend/MultipleScenarioGeneratorBaseTest.cs#L23
Non-nullable field 'LoadedData' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.