azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

[BUG] Azure.Communication.Chat is not mockable

Open cmeyertons opened this issue 4 months ago • 3 comments

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

cmeyertons avatar Sep 25 '24 20:09 cmeyertons