In my implementation code, I am fetching accountname from BlobServiceClient object. However when I try to mock it using MOQ, I see the error below. Is there a way to get around this error?
storageClientMock = new Mock<BlobServiceClient>();
storageClientMock.Setup(x => x.AccountName).Returns("accountname");
Message: System.NotSupportedException : Unsupported expression: x => x.AccountName Non-overridable members (here: BlobServiceClient.get_AccountName) may not be used in setup / verification expressions.