azure-sdk-for-net
azure-sdk-for-net copied to clipboard
[BUG] Azure.Communication.Chat is not mockable
Library name and version
Azure.Communication.Chat 1.3.1
Describe the bug
The Azure Communication Chat library is not mockable.
Especially for a service that I cannot emulate locally, I need to be able to mock out the interactions with it.
Expected behavior
I would expect the library to adhere to the design guidlines for testability:
https://learn.microsoft.com/en-us/dotnet/azure/sdk/unit-testing-mocking?tabs=csharp
Actual behavior
I cannot mock:
-
CreateChatThreadResult
-
ChatThreadProperties
- there's probably many more
Reproduction Steps
n/a
Environment
No response