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 (
1506dba
) to head (f2912cb
).
: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 19s :stopwatch: -1s 5 suites ±0 0 :zzz: ±0 5 files ±0 0 :x: ±0
Results for commit 1e4853ec. ± Comparison against base commit 1506dbaf.
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 = ce1d28e8-746a-4e87-b57a-993f8d38920a, DateOfBirth = 10/05/2019, Description = "Description6f454ca8-a7d2-4ddb-8057-6047da307b13", Name = "Name16f4f88f-ef66-4cd0-934c-5363f75cbb7a", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2025-10-09T09:38:26.3941492, CreatedBy = cb8cd4fe-ffb5-44d8-831e-7b81d5885249, Id = 084f7fdc-a635-44ff-a350-e4c297955cab, Name = "Namee0cb877b-3e9b-4000-9b75-a0c3bde6f3dd", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = dc5ee405-02a4-48a1-85a5-f414fdca7ab1, DateOfBirth = 08/22/2022, Description = "Descriptionf72f395e-4884-4b28-a12d-77cc10767785", Name = "Name8e52a136-ade2-47ad-9fa5-fd448ebd659a", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = 11f42ac4-38ba-4895-933d-df4998b424d9, DateOfBirth = 04/10/2023, Description = "Description25f0dc26-34ae-4885-9be7-76c1a65e19ea", Name = "Namef8d16ac4-5de2-4968-a90d-67e7d9689f8f", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-08-08T07:41:11.7654441, CreatedBy = 90a38c21-335e-49f8-a497-15b1690bd64c, Id = 323561ee-2d43-483f-8185-f93f7a479f9c, Name = "Nameb386ebe5-01d8-4e98-b1c1-2b88f047980f", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = 34914ff1-6895-46d6-b629-bac9b6657c56 }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = 2f97b248-c38c-4298-ad4e-9c2ec228bb9f }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2023-06-11T09:47:43.6305741, CreatedBy = cda55bd0-a06e-4281-8fd3-54dc80fa4509, Id = 4146af65-61e4-4a36-ac6e-4a1c79411e0f, Name = "Named501f818-bd27-418f-b842-9d8ab3a0fbd8", ··· }, CreatedAt = 2025-03-17T13:31:26.0392270, CreatedBy = 57754e33-2b0c-4f5f-b886-6a6a60be0d7d, DateOfBirth = 08/05/2020, Description = "Descriptionb1bbfdd6-5d82-46f1-81a5-bd1a29ffa3a6", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = 99a1182c-a912-4d94-8123-4c4f5f7c7038 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2024-12-02T19:36:53.7096996, CreatedBy = c2e32834-ee90-4ed4-9ba0-56003075a31d, Id = 783d669e-5d9e-4beb-8042-2f5bcd8430ee, Name = "Namecb10c55f-3cf2-4aa3-af58-07bb0ba403e3", ··· }, CreatedAt = 2024-01-28T10:05:29.0697763, CreatedBy = b67ac205-64a9-42bc-810d-2c0aa34f49d7, DateOfBirth = 08/05/2023, Description = "Descriptionbc5ffd2c-fdfe-416e-9f76-b3530feaf938", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 4162b455-4f83-4103-94a3-aea7320e0c00 }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 9c9c0415-d542-430b-8eb7-74a911f08db0) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2026-03-22T15:09:51.6472806, CreatedBy = 15a4e3a4-5295-49e1-a5d6-0c671aeb24ce, Id = e6fd95c9-0db2-44a6-83e7-9ff311c7b6ef, Name = "Namecb3c5c1c-c625-4985-99ea-4822957afa45", ··· }, CreatedAt = 2023-12-16T04:48:39.9546671, CreatedBy = 0362902b-956f-421f-a97e-20a2177f457b, DateOfBirth = 08/05/2020, Description = "Descriptionf613eab4-8ff5-446b-bb46-48c67dbc3400", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(items: [SearchAnimalsItem { BreedName = "BreedName61ccd719-fddf-42b2-a78e-69a503d22150", CreatedAt = 2024-05-08T04:53:16.6575502, DateOfBirth = 07/15/2020, Id = 15322e5b-4d09-4c19-8c2f-eb2650358723, Image = AnimalImage { AnimalId = db6560a0-195f-49f2-8772-0a2c98d80039, Description = "Descriptionf6b4fad4-923b-43e7-a613-ab5c81e31deb", Id = 20345332-7747-45f7-859e-8232342fa9b5, IsProcessed = True, OriginalContentType = "OriginalContentType22b2c024-4a68-42f5-976e-60a83b5"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedName09492be9-945e-491d-bea8-09811326409d", CreatedAt = 2025-08-26T23:12:30.3115630, DateOfBirth = 03/12/2022, Id = 8fc15def-3a4b-4e20-b51b-5945f030e50f, Image = AnimalImage { AnimalId = 8264701d-7bb9-40b9-b66a-3d67988c3f31, Description = "Descriptionfa99a3b5-97c9-4c3a-a262-71c9a6748274", Id = 52f83969-01c3-436e-8626-1ad2ee83a067, IsProcessed = False, OriginalContentType = "OriginalContentType33b84894-7a7f-4723-84bd-c973a82"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedNamef8b1ceaf-a165-41b6-86eb-b5adf26fe9ea", CreatedAt = 2023-10-14T20:38:21.2460881, DateOfBirth = 07/27/2022, Id = 2b038572-d094-46b1-a1b9-c53022672fd9, Image = AnimalImage { AnimalId = e2bfb639-8345-428d-be22-2967b0118cbc, Description = "Description39102d87-3ba4-4798-a88b-382909bd84e1", Id = 307cfc63-0d63-478a-ae6c-f5114bbe8eca, IsProcessed = True, OriginalContentType = "OriginalContentTypeb422f244-5f61-4c85-b092-8f5c64d"···, ··· }, ··· }]) … ``` ``` Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_InvalidRole_ShouldReturnForbidden(request: AddAnimalRequest { BreedId = 265fb3c9-cda8-4c58-993b-0d6b811fad81, DateOfBirth = 12/14/2020, Description = "Description3eb92479-85b3-499a-bbd9-dc7f700e1de9", Name = "Name947bfac0-d812-4a8b-9a62-63e33bb0ae51", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2025-04-10T05:08:37.6854282, CreatedBy = fbaf6a9d-d62f-403a-baa6-b93f8370d95a, Id = 43b980fa-32d2-4e00-8699-c3d445b4c53c, Name = "Name3a3d38df-9d14-4277-9d76-ff011224b384", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithInvalidBreedId_ShouldReturnBadRequest(request: AddAnimalRequest { BreedId = 53166fca-00e9-4dcf-a0fa-28d495de2f03, DateOfBirth = 06/02/2022, Description = "Description62e2d189-dc2f-45cf-9320-7c74d02d220d", Name = "Name863e017f-2e76-4db8-86ec-0ec3c18714af", Sex = Unknown, ··· }) Adoptrix.Api.Tests.Endpoints.Animals.AddAnimalEndpointTests ‑ AddAnimal_WithValidRequest_ShouldReturnCreated(request: AddAnimalRequest { BreedId = d7cc8f1f-09c4-4ad4-bc25-f1cbb558b943, DateOfBirth = 02/25/2023, Description = "Descriptiona9fcf252-fc10-4aed-b6b7-cd42c16db4ad", Name = "Name7e26ef58-4fd1-4a31-9fc4-695273436b60", Sex = Unknown, ··· }, breed: Breed { Animals = [], CreatedAt = 2024-03-04T08:59:44.9762086, CreatedBy = aa237dd8-cadb-445c-92eb-b334c67cb1fa, Id = df0b9f93-63eb-4d84-a879-b442e2d60cef, Name = "Name4d8d73fd-76f8-4429-8d2d-6d51f0a3c45f", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithInvalidAnimalId_ShouldReturnNotFound(request: DeleteAnimalRequest { AnimalId = 056930be-0fc3-43d8-8eff-d81b42c916af }) Adoptrix.Api.Tests.Endpoints.Animals.DeleteAnimalEndpointTests ‑ DeleteAnimal_WithValidRequest_ShouldReturnNoContent(request: DeleteAnimalRequest { AnimalId = d05a1639-7a68-4202-85b3-bf1d2e0bbe45 }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2026-03-31T10:39:32.1118907, CreatedBy = 2eb5527e-36af-4489-848f-2286268b49a3, Id = 72c27ae8-9bf3-4095-ac48-6f4efc6f2919, Name = "Name5de996e7-f089-487d-a6cb-da920a45dcd9", ··· }, CreatedAt = 2024-03-22T22:36:08.0817899, CreatedBy = 71bf14a8-f482-4379-8b39-c01504c25a6f, DateOfBirth = 08/09/2021, Description = "Description6e0cdd2c-0115-463b-a948-66b90f302be0", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithKnownAnimalId_ShouldReturnOk(request: GetAnimalRequest { AnimalId = 54dc0f98-8961-4de2-8d0e-d3ee09707e6c }, animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2025-10-03T04:43:46.5823061, CreatedBy = 7ee0d607-c3c7-41ef-b5b9-0a3994bbc153, Id = eccd0359-2531-4621-a296-261d31a4840a, Name = "Namea284c179-2312-4b3c-ad2e-8087f9557284", ··· }, CreatedAt = 2024-06-01T18:17:59.8250680, CreatedBy = 531e8eac-22af-48d0-98b7-e04801fdd584, DateOfBirth = 08/11/2015, Description = "Description1d498b6d-bc59-40aa-9bb0-cf138c19cce3", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.GetAnimalEndpointTests ‑ GetAnimal_WithUnknownAnimalId_ShouldReturnNotFound(request: GetAnimalRequest { AnimalId = 4fbb0ce4-a0ad-479f-ad99-9cc0d761c0a0 }) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithInvalidAnimalId_ReturnsNotFound(animalId: 1326e794-0e52-42c7-bfd6-6e87dd7ed5fe) Adoptrix.Api.Tests.Endpoints.Animals.Images.AddAnimalImagesEndpointTests ‑ AddAnimalImages_WithValidRequest_ShouldReturnOk(animal: Animal { Breed = Breed { Animals = [···], CreatedAt = 2022-10-10T16:09:02.9247209, CreatedBy = 8591dd12-5eb2-42d4-8d76-1765625395fb, Id = 37b1a47f-db7b-4385-a7da-d7158a3f4cda, Name = "Namebe909d07-037c-47c3-9e37-6e83c5ff3da1", ··· }, CreatedAt = 2022-11-10T02:42:03.3323030, CreatedBy = 5da7252b-7179-4a23-8cdf-d2193c7025a9, DateOfBirth = 08/09/2020, Description = "Description17864347-ed83-41d9-b2c3-b36e88fecc6b", ··· }) Adoptrix.Api.Tests.Endpoints.Animals.SearchAnimalEndpointTests ‑ SearchAnimals_WithValidRequest_ShouldReturnOk(items: [SearchAnimalsItem { BreedName = "BreedName90188e02-d8e4-4a2d-80ad-5f9b117dfffb", CreatedAt = 2024-12-02T01:53:03.6665629, DateOfBirth = 02/04/2022, Id = 843eee58-8d61-446f-9dcf-23abf08770a6, Image = AnimalImage { AnimalId = d796934c-6497-478a-9d17-0efa2026eeac, Description = "Descriptionc7c782a1-9c01-4a9e-bbca-411ca4756cb4", Id = 2c5441fb-0fea-491b-ab38-6f68972ed1b3, IsProcessed = True, OriginalContentType = "OriginalContentType757cc341-722d-424a-b136-4286460"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedName0814ae4a-1016-438a-b4ca-a3ed4246f966", CreatedAt = 2022-11-02T09:36:27.4251398, DateOfBirth = 02/01/2021, Id = 5675a8b3-6256-4110-87ee-966c64462ea9, Image = AnimalImage { AnimalId = 1568db38-854e-4e45-8324-e94ce194905e, Description = "Description25c288ef-f5e5-468b-9bd7-f887e994e391", Id = 3749fecf-d0eb-4c07-b094-96dadd67d0f6, IsProcessed = False, OriginalContentType = "OriginalContentType5a23a014-0bff-4ab6-a26c-6c59ba9"···, ··· }, ··· }, SearchAnimalsItem { BreedName = "BreedName7465e9ad-4014-472b-a5e7-d82a82e4e081", CreatedAt = 2024-12-10T18:44:05.8746905, DateOfBirth = 12/27/2020, Id = 2959e656-03ec-4bef-a34a-295c509c7d91, Image = AnimalImage { AnimalId = f54e50ab-c1a0-4c18-89aa-1ee1bf1bbc19, Description = "Descriptiond3c3f091-8205-4a5a-b5d6-656a5e921c43", Id = 769a761a-13f7-4eb3-972c-d039c3e35e81, IsProcessed = True, OriginalContentType = "OriginalContentTypec632f60b-0750-44be-a708-19050ca"···, ··· }, ··· }]) … ```:recycle: This comment has been updated with latest results.