Closed frasermclean closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.78%. Comparing base (
2537de0
) to head (1bb3063
). Report is 12 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Solution test results
93 tests ±0 93 :white_check_mark: ±0 15s :stopwatch: -3s 5 suites ±0 0 :zzz: ±0 5 files ±0 0 :x: ±0
Results for commit 1bb3063c. ± Comparison against base commit 2537de0d.
This pull request removes 26 and adds 26 tests. Note that renamed tests count towards both.
``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_InvalidRole_ShouldReturnForbidden(request: AddAnimalRequest { BreedId = c8ab5827-0ce3-4766-89cf-0a27d8663fc2, DateOfBirth = 05/04/2022, Description = "Description1018b7a7-6ec5-4674-9b8c-852de3810cfc", Name = "Name5f8e68e9-520f-4107-8ec8-8a384babf343", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-07-02T04:49:01.2888799, CreatedBy = f4a7465c-1c9f-49e8-b672-e77fd9aae8ea, Id = 5e7acc8a-6d7d-483c-b161-f5324f9d7e71, Name = "Name873195c2-a1c9-42c4-9a95-470e9aed8953", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = 30900889-d77d-4921-9170-fb309716f643, DateOfBirth = 10/31/2019, Description = "Description74275854-07d1-44f2-a1c8-c3d2c703c7e3", Name = "Namec9c117ba-9ff2-4ab8-a672-a32b298024a7", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = c5d6b105-0742-467a-80fd-7cbc1f5a97c5, DateOfBirth = 08/16/2020, Description = "Description78634da3-380c-49ea-be81-f13e084e5ddf", Name = "Name46a91f42-d96f-48bc-a165-7546cc0d8b9f", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2022-10-03T14:02:33.9304436, CreatedBy = 22ed8331-1c99-4d63-a292-1a51f45115e9, Id = c9a0513b-d6f4-49ee-a1c4-28ede3c7cf40, Name = "Namea55b1ea4-6265-415d-b267-5cd617dc225f", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = 1d1d0a25-4510-48a0-b277-92373109f32d }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = 404f4356-cb57-4c62-951e-c093f794afbf }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2023-11-25T04:16:21.8998051, CreatedBy = 1b31e128-8eda-45cc-849b-8b21003c640a, Id = 4ee8e36f-a00c-4b5f-8621-b2ef0b327cd8, Name = "Namecb1022d6-0424-4a48-b7eb-01efb37919dc", ··· }, CreatedAt = 2025-07-23T01:47:25.3721116, CreatedBy = 853b4c1b-f2b5-4ee5-9473-4d79be96168b, DateOfBirth = 08/10/2018, Description = "Description478e4b54-792e-4461-944e-bd6b8c847816", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = b3c379f5-970d-48f7-a95d-ba5bd36f32ce }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2023-12-30T06:36:50.8126182, CreatedBy = fd1ed42f-693f-4cee-8627-d485c4428636, Id = 93612a09-a91f-44bf-a5b1-34fc63307008, Name = "Name42d4f498-e81b-4c92-8e15-4e841b658883", ··· }, CreatedAt = 2025-04-08T08:33:16.3016339, CreatedBy = 5a274819-2aa8-4638-8422-060e33a23e18, DateOfBirth = 08/10/2016, Description = "Description7aaa3fbd-4c92-472a-8822-52004155ce3e", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 5524f31c-5420-48ef-80c8-6b334680d68c }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 23c5dffb-4ae7-4be4-aac1-fad950708665) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-12-22T04:21:37.6874100, CreatedBy = aed0a4ae-53eb-45d6-a0b3-b2e67cea67e8, Id = 69921225-9c60-4946-b18f-0b588d79c5b9, Name = "Nameb4b94e6e-3e5f-47ef-ad82-3a5563cbcebf", ··· }, CreatedAt = 2024-12-15T02:03:48.3322355, CreatedBy = 48769a75-2799-43d0-825d-3210531faf6a, DateOfBirth = 08/09/2021, Description = "Descriptionb8dba681-bda8-47fd-9408-8b4ca380a85d", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(items: [SearchAnimalsItem { BreedName = "BreedName05322dfc-98e5-4f1b-9a3a-f0a1c223abed", CreatedAt = 2025-05-21T20:35:06.5749139, DateOfBirth = 09/11/2022, Id = 1625e450-aec7-42b4-acd3-c870587d79d6, Image = AnimalImage { AnimalId = 6373d13e-7a65-47a0-bd89-3673ecaea82c, Description = "Description4596cbab-4329-4ce0-a010-6ef53037bce6", Id = 177278b3-1531-46c4-9dfc-3b6ba4e52202, IsProcessed = True, OriginalContentType = "OriginalContentTypec9c02d48-ea55-402b-975f-6a8a323"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNamec4788bde-c8bb-4855-88d6-d8b521f5c996", CreatedAt = 2023-07-23T08:32:19.5803099, DateOfBirth = 04/27/2022, Id = 496a0b1a-112a-4413-8914-3507162f5963, Image = AnimalImage { AnimalId = edd4c9c0-0dff-4130-8eec-99d5455cf611, Description = "Description6b2f126d-37d7-4950-97bd-d07ab478af29", Id = 55f24710-2c1b-4836-98be-45a10ba42915, IsProcessed = False, OriginalContentType = "OriginalContentType9c4756c9-bf96-471f-a410-2976be2"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedName12331ef9-695f-4470-bd61-38f5b8221749", CreatedAt = 2023-03-14T07:55:47.7768080, DateOfBirth = 10/27/2022, Id = 2be88899-13bc-484a-be1a-db514effa998, Image = AnimalImage { AnimalId = 3795ed70-71d5-4cad-a6e9-8d1683984b63, Description = "Description6820449f-fa9a-4e10-bf5b-b5d27386b356", Id = be86e6cf-7503-4ad7-8100-db17de188a44, IsProcessed = True, OriginalContentType = "OriginalContentType6f724f19-e86d-4314-ac87-d8d6d59"···, ··· }, ··· }]) … ``` ``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_InvalidRole_ShouldReturnForbidden(request: AddAnimalRequest { BreedId = 4067db96-e88f-41aa-b843-b0a8387e4f51, DateOfBirth = 03/11/2022, Description = "Descriptionc66ce39e-c51c-4039-8ba2-4266a43b507b", Name = "Namec7c18f7e-b69e-4cba-844f-505691a75c3a", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2025-11-21T10:01:06.1930451, CreatedBy = a64117e5-e041-43cd-a64c-12667fa8bbfd, Id = 5c7cb9ff-f666-4a72-9ca7-3902238a996a, Name = "Name864ec663-8ec2-4364-be29-13bb76a4b916", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = ac4d4093-3a79-40b2-a119-91ec792f7beb, DateOfBirth = 06/21/2020, Description = "Description724c5ce2-233a-4337-ac1d-b6aee4ea3a8b", Name = "Name9d0ca401-33f6-46c7-91aa-f4d5e28d861e", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = a4dfb530-8343-4409-9ebf-be3760dcba55, DateOfBirth = 10/08/2019, Description = "Descriptionc7146bb8-fbbc-4af9-a8fd-4743d7198569", Name = "Name66e8532e-0329-4da5-b306-031d397b7845", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2023-09-10T22:24:06.9888698, CreatedBy = a327451a-552f-4fb2-9e05-629b93d48114, Id = 05c5c396-0635-4480-a951-d81bfb975eab, Name = "Namef53d7c81-31ad-4ca1-9bd1-d3647aa01d3b", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = 8a771510-94e9-4c0d-9c6f-f613cb324c8c }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = 254b68d0-7b40-4192-b939-2b08c194ce4f }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2022-10-05T01:27:35.3274422, CreatedBy = 2726d9fa-85e5-4df5-b9af-e810bd617aca, Id = 9e994476-d359-4ef4-b6e1-a91ceb7644d7, Name = "Name95ede6c5-dff0-49a4-93c2-abd92583f42f", ··· }, CreatedAt = 2026-03-26T06:27:05.0527040, CreatedBy = 05487454-e6ce-4d6f-847f-2327eec3386b, DateOfBirth = 08/22/2022, Description = "Descriptiond1c1025b-24a7-496f-a400-6bf3861388f7", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = 0a03772a-666e-4b69-9dad-1d5ce4866b28 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2022-12-16T02:28:18.7031622, CreatedBy = 4549fd23-5626-466c-9746-dbc8dfb91290, Id = 50214d59-dfd7-42b1-b79a-2c0a936b53dc, Name = "Named0328c25-6111-4233-9c0f-86f7578723b9", ··· }, CreatedAt = 2024-07-16T05:21:33.7501388, CreatedBy = 9901417b-5199-4aef-8ed0-9cb01a2ff448, DateOfBirth = 08/22/2022, Description = "Description8d186b27-ca54-4a2d-bc7b-5225f2226207", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 99e3ab9b-35d5-44c7-b71c-9a0a9971dd65 }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 1337cdf8-1f65-4931-897c-725eba05b3ec) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-12-30T10:26:00.7882814, CreatedBy = 5ab5b46c-ae47-4097-8992-bfe9f70ac932, Id = fa127403-8456-4af8-a769-3517c6da3248, Name = "Name3524cdf2-1fb8-45de-8da4-3acce9d6cbfa", ··· }, CreatedAt = 2026-03-15T10:51:30.4123269, CreatedBy = f6709623-6519-4a12-abee-601b3d5e06fb, DateOfBirth = 08/22/2023, Description = "Descriptionb1d6ed71-a005-4620-8af0-0bbbfed35172", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(items: [SearchAnimalsItem { BreedName = "BreedName567f64b1-e507-498f-ace0-7c35dffeda0c", CreatedAt = 2023-09-22T00:55:12.0971589, DateOfBirth = 04/05/2023, Id = da4a196c-6ca6-451b-808c-f6caa7a622a4, Image = AnimalImage { AnimalId = de3d5a4d-3834-4c55-82bb-072223ee95ec, Description = "Description493bc853-3a5e-4673-8f7a-b609b6730f15", Id = 6df5fd39-fad6-4e0e-a8d3-3c2d849f8182, IsProcessed = True, OriginalContentType = "OriginalContentTypec4c397f4-2d15-4b11-8c8c-fcdd92e"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNamef280f043-5590-40c7-b495-311550068615", CreatedAt = 2026-03-24T13:52:37.8395406, DateOfBirth = 06/06/2021, Id = 57e4c10d-faed-43ca-9bc2-010796ec08b4, Image = AnimalImage { AnimalId = 95ff0d69-06a4-4006-bfa9-ed5c878ba326, Description = "Description82a708e3-287c-4f43-9c02-d5623be5e358", Id = 72b48dac-8943-4954-9303-c4825adc48fb, IsProcessed = False, OriginalContentType = "OriginalContentType0f9829b0-aa3c-4f3b-ae50-98ac472"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNamea54ce5bc-f0bf-43d7-aa4e-02f0e2535b1e", CreatedAt = 2026-08-09T08:19:57.1193918, DateOfBirth = 02/25/2021, Id = 27abdec8-3628-40b8-a20e-528c22829750, Image = AnimalImage { AnimalId = 8e00ced8-d713-4859-ac5e-d4f110da57b1, Description = "Descriptionb1731430-0c03-4b5a-b9eb-afaaf2e3f337", Id = f8ebb698-1678-4f20-9534-766220cbc754, IsProcessed = True, OriginalContentType = "OriginalContentTypee7569a0e-7b48-4f53-8b16-b6c6d44"···, ··· }, ··· }]) … ```:recycle: This comment has been updated with latest results.