{"id":22189964,"url":"https://github.com/fgheysels/httptestutils","last_synced_at":"2025-08-26T22:05:05.964Z","repository":{"id":40878908,"uuid":"260219769","full_name":"fgheysels/HttpTestUtils","owner":"fgheysels","description":"This project contains some helpfull classes that can be used when unit-tests have a dependency on HttpClient.","archived":false,"fork":false,"pushed_at":"2025-02-17T22:29:57.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T00:36:43.705Z","etag":null,"topics":["testing","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fgheysels.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-30T13:31:37.000Z","updated_at":"2025-02-17T22:29:57.000Z","dependencies_parsed_at":"2025-07-26T22:30:51.736Z","dependency_job_id":"bded1790-5ae3-4763-8d34-69794e81631c","html_url":"https://github.com/fgheysels/HttpTestUtils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fgheysels/HttpTestUtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgheysels%2FHttpTestUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgheysels%2FHttpTestUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgheysels%2FHttpTestUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgheysels%2FHttpTestUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgheysels","download_url":"https://codeload.github.com/fgheysels/HttpTestUtils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgheysels%2FHttpTestUtils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272260576,"owners_count":24902391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["testing","testing-tools"],"created_at":"2024-12-02T11:40:52.799Z","updated_at":"2025-08-26T22:05:05.910Z","avatar_url":"https://github.com/fgheysels.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HttpTestUtils\n\n[![Build Status](https://frederikgheysels.visualstudio.com/GitHub%20Pipelines/_apis/build/status/HttpTestUtils/HttpTestUtils%20CI?branchName=master)](https://frederikgheysels.visualstudio.com/GitHub%20Pipelines/_build/latest?definitionId=4\u0026branchName=master)\n[![NuGet Badge](https://buildstats.info/nuget/httptestutils?includePreReleases=true)](https://www.nuget.org/packages/HttpTestUtils/)\n\n# Introduction\n\n`HttpTestUtils` contains some classes which make it easier to mock out dependencies on `HttpClient` during unit-tests.\n\n## HttpClientMock\n\nWhen 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.\nHave a look at the `HttpClientMockTests` in the HttpTestUtils.Tests project to find out how to make use of it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgheysels%2Fhttptestutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgheysels%2Fhttptestutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgheysels%2Fhttptestutils/lists"}