Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 936 Bytes

readme.md

File metadata and controls

13 lines (8 loc) · 936 Bytes

HttpTestUtils

Build Status NuGet Badge

Introduction

HttpTestUtils contains some classes which make it easier to mock out dependencies on HttpClient during unit-tests.

HttpClientMock

When code has a dependency on HttpClient it might be hard to test that code since in a unit-test you clearly do not want to send real HTTP messages. The HttpClientMock allows you to predefine the behaviour that must be executed by the HttpClient class. Have a look at the HttpClientMockTests in the HttpTestUtils.Tests project to find out how to make use of it.