[Test] Provide Model Factory per .NET Mocking Guidelines #11529
Labels
blocking-release
Blocks release
Client
This issue points to a problem in the data-plane of the library.
Cognitive - Form Recognizer
Cognitive Services
Milestone
https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking
✅ DO provide factory or builder for constructing model graphs returned from virtual service methods.
Model types shouldn’t have public constructors. Instances of the model are typically returned from the client library, and are not constructed by the consumer of the library. Mock implementations need to create instances of model types. Implement a static class called ModelFactory in the same namespace as the model types.
The text was updated successfully, but these errors were encountered: