MSTest – Unit Test and Mock HttpClientFactory

Mocking HttpClientFactory is simple and easy using MSTest.

Mocking structure is the same as what we learned in XUnit or NUnit.

For more details step – please visit this article.

A sample example is here,

MSTest Unit Test and Mock HttpClientFactory

References:



Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.



Leave a Reply

Your email address will not be published. Required fields are marked *