Skip to content

This project contains some helpfull classes that can be used when unit-tests have a dependency on HttpClient.

Notifications You must be signed in to change notification settings

fgheysels/HttpTestUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This project contains some helpfull classes that can be used when unit-tests have a dependency on HttpClient.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages