FluentEmail
FluentEmail copied to clipboard
Unable to Mock SendResponse
Hi Luke!
I tried to write a unit test for my Fluentmail implementation but i am unable to mock the SendResponse.Successful, since it is readonly and the class is not virtual/abstract.
If you try something like this:
Mock<SendResponse> sendResponseMock = new();
sendResponseMock.SetupGet(x => x.Successful).Returns(true);
I get a "non-overridable members" error
Do you have an idea?
best regards Konrad