Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

28 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

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /