frasermclean / adoptrix

Pet adoption centre platform
https://demo.adoptrix.com
MIT License
1 stars 0 forks source link

Move persistence service interfaces to persistence project #83

Closed frasermclean closed 3 months ago

github-actions[bot] commented 3 months ago

Solution test results

81 tests  ±0   81 :white_check_mark: ±0   17s :stopwatch: -7s  5 suites ±0    0 :zzz: ±0   5 files   ±0    0 :x: ±0 

Results for commit 041c94d6. ± Comparison against base commit 007cad46.

This pull request removes 25 and adds 25 tests. Note that renamed tests count towards both. ``` Adoptrix.Jobs.Tests.Functions.CleanupDeletedAnimalTests ‑ ExecuteAsync_WithValidEventData_ShouldPass(eventData: AnimalDeletedEvent { AnimalId = c88a4c07-8366-456a-8c9b-5b494deacbf5 }, blobNames: ["61a24d13-414e-4ec3-ae1c-9c29f90ac7b2", "d5b90f57-cd17-4215-9fed-562cfea115b3", "7b4185c5-473e-4175-a82c-4dcf64b86310"], blobContainerManagerMock: Mock, cleanupDeletedAnimal: CleanupDeletedAnimal { }) Adoptrix.Jobs.Tests.Functions.ProcessAnimalImageTests ‑ ExecuteAsync_WithInvalidAnimalId_ShouldThrowException(data: AnimalImageAddedEvent { AnimalId = 8c94d454-1c3a-4b2d-b784-5b34e44f501c, ImageId = 40ed87cb-8837-404a-8c1e-8d4051f19f2d, BlobName = BlobName4457bf6d-adbb-4b8a-bc8f-0597c61d72f2 }) Adoptrix.Jobs.Tests.Functions.ProcessAnimalImageTests ‑ ExecuteAsync_WithValidEventData_ShouldPass(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2023-06-20T13:09:13.5197026, CreatedBy = 2ee03c45-315c-4b9b-8e61-430c1485928d, Id = 81fb804c-d314-4a1f-909e-1e90f2711ffe, Name = "Name8983f74e-732d-4ea2-9fe9-a3bf9a8f9a22", ··· }, CreatedAt = 2024-06-05T23:28:00.9123844, CreatedBy = b0359118-522a-4dd0-a583-a4b83fb82faa, DateOfBirth = 07/15/2021, Description = "Description833c0860-00c5-412a-b7eb-18bd3aa3b7ef", ··· }, bundle: ImageStreamBundle { FullSizeWriteStream = Mock.Object, PreviewWriteStream = Mock.Object, ThumbnailWriteStream = Mock.Object }) Adoptrix.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = 0b9e2431-83c5-4f31-a7cf-13f242993d98, DateOfBirth = 12/10/2021, Description = "Description85b9e0b4-eab9-42b1-9e9c-5591163a4680", Name = "Name302e42fa-ea7e-4e97-9d2b-e5c525b6dc35", Sex = Unknown, ··· }) Adoptrix.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = d0073e94-a043-4bff-acf0-936249b5f0b2, DateOfBirth = 01/16/2021, Description = "Description02321ac7-bc5d-4807-9c69-f257999e2017", Name = "Named63d524e-a747-4b0d-8c42-793178d0f76f", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2022-12-22T07:47:52.9121675, CreatedBy = 7863590f-8a5a-4def-8b03-5550b902818b, Id = eee5f200-e610-4f57-9433-0fb5b7ba5ef5, Name = "Name6579c41c-ca81-473b-a6a2-c871154f8064", ··· }) Adoptrix.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = 3f8c3cea-b927-4002-a126-1b2d615217b0 }) Adoptrix.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = ee700f4f-2e0c-4454-9360-b8cd17f84eba }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-01-28T09:22:23.4191787, CreatedBy = 4c13b8c7-ecf6-475d-98dd-1a1a6f2932b9, Id = 405e9016-4c6d-42df-a7dd-a8121fc56912, Name = "Name36f015d6-8e49-42cd-a5bd-4f55d12335e8", ··· }, CreatedAt = 2025-04-29T09:57:27.6216862, CreatedBy = 8ffb7c84-f958-44c8-a1b5-da478d326ae5, DateOfBirth = 07/16/2019, Description = "Description2b2dd785-b24e-4ebf-8ca3-1714cb35a12b", ··· }) Adoptrix.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = 56e0e9dd-293e-45f7-95ba-3e6f423668ac }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-07-16T06:45:19.0530346, CreatedBy = ab17fb42-32b4-4edd-98c4-562e84a28762, Id = 7b3f3acf-ef40-416e-b049-524891322ae8, Name = "Name5dfdab2e-3851-4847-8e3f-8c8736e17426", ··· }, CreatedAt = 2025-05-17T23:50:58.1695795, CreatedBy = 61d1ed14-67cb-4d1e-8d71-afa6f6caffc4, DateOfBirth = 07/16/2016, Description = "Description1fcedb10-e848-4e26-8a49-265eaf8604a1", ··· }) Adoptrix.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 3a5d42d6-3a2f-47af-baa9-916de10e65fe }) Adoptrix.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: d389ff81-5934-4213-88e7-d11b1c253b18) … ``` ``` Adoptrix.Jobs.Tests.Functions.CleanupDeletedAnimalTests ‑ ExecuteAsync_WithValidEventData_ShouldPass(eventData: AnimalDeletedEvent { AnimalId = b8790cd0-37ed-490b-97c4-1d86a689a96a }, blobNames: ["f6f0c146-01c2-4f74-8d90-5dbe7074a27e", "d5976d90-ca00-4218-a219-d72f9da16b1d", "060676ec-1d14-4f3e-ace3-2c03578ec6c4"], blobContainerManagerMock: Mock, cleanupDeletedAnimal: CleanupDeletedAnimal { }) Adoptrix.Jobs.Tests.Functions.ProcessAnimalImageTests ‑ ExecuteAsync_WithInvalidAnimalId_ShouldThrowException(data: AnimalImageAddedEvent { AnimalId = a4189b45-0157-48fa-813a-8c1d7e87a05f, ImageId = f82b39fc-81b7-40f4-8529-47a1b8e3be27, BlobName = BlobName4b0a0b8e-da3c-462e-90a3-6ddba2602d06 }) Adoptrix.Jobs.Tests.Functions.ProcessAnimalImageTests ‑ ExecuteAsync_WithValidEventData_ShouldPass(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-11-14T01:30:20.6771968, CreatedBy = 55773496-84eb-4444-994d-0bab15766fdd, Id = 27d78265-2953-4dd8-ad6a-855397a29e49, Name = "Namef8219a31-e77f-4ece-b8e0-0a6bcc3be3ba", ··· }, CreatedAt = 2025-01-09T11:30:53.6706121, CreatedBy = 20047698-d85b-4ae0-8b6f-a543e3c91cce, DateOfBirth = 07/18/2015, Description = "Description22d4b80b-5f47-483d-be2e-384f248e0891", ··· }, bundle: ImageStreamBundle { FullSizeWriteStream = Mock.Object, PreviewWriteStream = Mock.Object, ThumbnailWriteStream = Mock.Object }) Adoptrix.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = cbfbd1a6-42c0-45f1-99db-7f311dacc136, DateOfBirth = 08/17/2022, Description = "Description3fcae780-0372-4a8d-8977-9756eed28250", Name = "Name2f79b1e6-d352-4dda-a811-66f2300cc678", Sex = Unknown, ··· }) Adoptrix.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = eb2c7184-0b26-45c9-910d-822dc728adc2, DateOfBirth = 04/15/2021, Description = "Descriptionedb0330c-9019-4ff3-99c4-c1a30f4e399d", Name = "Name39dbbfeb-90bc-4e88-b724-2cd58fe516d7", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-09-13T09:46:09.8906173, CreatedBy = 56f0ac28-f9e9-42a5-b5b7-644de550373a, Id = ae45166f-478c-49e9-b79e-a07abb61bbe5, Name = "Name49850a99-cf4d-4772-9e08-85dc11a1d319", ··· }) Adoptrix.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = aa548aae-ab80-44da-bb56-5f73ec9b80eb }) Adoptrix.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = 97421e2a-b7bb-4421-90bc-6a1b7a2aba39 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-04-09T00:05:14.0272464, CreatedBy = 09ed9e6e-d86d-406b-b6b6-e21dcf3c32c9, Id = 49729cf7-8833-4a4b-a8ac-b68e43f100f2, Name = "Name72c1c2b2-2d0a-47bd-8497-51519eeb8481", ··· }, CreatedAt = 2023-03-17T04:08:38.7126487, CreatedBy = 85c1a904-da3d-4a8d-b642-9eeaac14fda0, DateOfBirth = 07/17/2019, Description = "Description39ba5bf5-5614-4eb8-9cc6-847c0939c2be", ··· }) Adoptrix.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = caa52361-0c78-48d0-8e7c-c720a55f4b21 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-08-05T01:04:46.6062919, CreatedBy = e8a7dbf6-a2a7-4f3c-a5b7-bdd780d70f93, Id = 63309fc4-9b4d-48d1-8f08-52c4a7d410ad, Name = "Name94e88f23-9088-4c6e-8bc8-7d10bca227d9", ··· }, CreatedAt = 2023-10-17T05:59:16.1353741, CreatedBy = 3b24dfdf-1b12-4252-bc12-18de1efb8878, DateOfBirth = 07/17/2017, Description = "Description8d9693fa-7c12-46aa-acd8-7306abdebca0", ··· }) Adoptrix.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 5fe82ede-d8b0-4547-8a19-7b0ab4944dc6 }) Adoptrix.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 3e353e32-054a-497d-9488-057544cc1c13) … ```
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.32%. Comparing base (007cad4) to head (041c94d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #83 +/- ## ======================================= Coverage 79.32% 79.32% ======================================= Files 100 100 Lines 1064 1064 Branches 69 69 ======================================= Hits 844 844 Misses 208 208 Partials 12 12 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.