79545208

Date: 2025-03-30 21:58:44
Score: 1
Natty:
Report link

This works fine for me

  _mockHttpClient = new Mock<HttpClient>();
  _mockHttpClientFactory = new Mock<IHttpClientFactory>();
  _mockHttpClientFactory.Setup(x => x.CreateClient(It.IsAny<string>())).Returns(_mockHttpClient.Object);

I get the "failed: 0" with this approach :)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2562121