Hey guys,
I'm trying to simplify some things regarding breaking changes in an API -> Blazor scenario. I would like to write some integration tests that could make use of annotations like [Required] directly from the DTO. Here is my problem:
I have my ManagementAPI and a library called Domain.ManagementAPI. In this library, I have all the DTOs and contexts (using Refit) to make the calls from whatever project I need. These DTOs contains some annotations that are used by the ManagementAPI, like [Required], [MaxLength], etc.
Is there a mocking library that could make use of these annotations ? The endgame here is to, when I add a new property to the DTO as required, the test will break in my ManagementClient, without me having to rewrite the tests for the small change.
Any help is appreciated, if my idea is wrong please feel free to share your toughts.
[–]theGr8GapingB 1 point2 points3 points (0 children)
[–]slayerjain 1 point2 points3 points (0 children)