{"id":18937499,"url":"https://github.com/verifytests/verify.flurl","last_synced_at":"2025-06-12T05:35:39.080Z","repository":{"id":228163973,"uuid":"773277880","full_name":"VerifyTests/Verify.Flurl","owner":"VerifyTests","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-09T09:14:45.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T10:24:41.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VerifyTests.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","code_of_conduct":"code_of_conduct.md","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},"funding":{"github":"SimonCropp"}},"created_at":"2024-03-17T08:18:14.000Z","updated_at":"2025-06-09T09:14:42.000Z","dependencies_parsed_at":"2024-05-10T08:42:50.890Z","dependency_job_id":"9851c95d-4ceb-43c4-bb84-c125da260d69","html_url":"https://github.com/VerifyTests/Verify.Flurl","commit_stats":null,"previous_names":["verifytests/verify.flurl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VerifyTests/Verify.Flurl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Flurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Flurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Flurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Flurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.Flurl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Flurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259406330,"owners_count":22852557,"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","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":[],"created_at":"2024-11-08T12:11:27.191Z","updated_at":"2025-06-12T05:35:39.075Z","avatar_url":"https://github.com/VerifyTests.png","language":"C#","funding_links":["https://github.com/sponsors/SimonCropp"],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"/src/icon.png\" height=\"30px\"\u003e Verify.Flurl\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://ci.appveyor.com/api/projects/status/rfmvbst3od5vpl7p?svg=true)](https://ci.appveyor.com/project/SimonCropp/verify-flurl)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.Flurl.svg)](https://www.nuget.org/packages/Verify.Flurl/)\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow verification of [Flurl](https://flurl.dev/) bits.\n\n**See [Milestones](../../milestones?state=closed) for release notes.**\n\n\n## Sponsors\n\n\n### Entity Framework Extensions\u003c!-- include: zzz. path: /docs/zzz.include.md --\u003e\n\n[Entity Framework Extensions](https://entityframework-extensions.net/) is a major sponsor and is proud to contribute to the development this project.\n\n[![Entity Framework Extensions](docs/zzz.png)](https://entityframework-extensions.net)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.Flurl\n\n\n## Usage\n\n\n### Initialize\n\nCall `VerifyFlurl.Initialize()` in a `[ModuleInitializer]`.\n\n```cs\npublic static class ModuleInitializer\n{\n    [ModuleInitializer]\n    public static void Initialize() =\u003e\n        VerifyFlurl.Initialize();\n}\n```\n\nAlternatively, use `VerifierSettings.InitializePlugins()` to initialize all Verify plugins with default settings.\n\n```cs\npublic static class ModuleInitializer\n{\n    [ModuleInitializer]\n    public static void Initialize() =\u003e\n        VerifierSettings.InitializePlugins();\n}\n```\n\n\n### Test\n\nGiven any calls to `HttpTest`, those call can be verified as follows:\n\n\u003c!-- snippet: usage --\u003e\n\u003ca id='snippet-usage'\u003e\u003c/a\u003e\n```cs\n[Fact]\npublic async Task Usage()\n{\n    using var httpTest = new HttpTest();\n\n    httpTest.RespondWith(\"OK\");\n\n    await \"http://api.mysite.com/\".GetAsync();\n    await \"http://api.mysite.com/\".PostAsync(new StringContent(\"the content\"));\n\n    await Verify(httpTest);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.cs#L3-L18' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-usage' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nResults in:\n\n\u003c!-- snippet: Tests.Usage.verified.txt --\u003e\n\u003ca id='snippet-Tests.Usage.verified.txt'\u003e\u003c/a\u003e\n```txt\n[\n  {\n    Request: http://api.mysite.com/,\n    Response: {\n      Status: 200 OK,\n      Content: {\n        Headers: {\n          Content-Type: text/plain; charset=utf-8\n        },\n        Value: OK\n      }\n    }\n  },\n  {\n    Request: {\n      Method: POST,\n      Uri: http://api.mysite.com/,\n      Content: {\n        Headers: {\n          Content-Type: text/plain; charset=utf-8\n        },\n        Value: the content\n      }\n    },\n    Response: {\n      Status: 200 OK,\n      Content: {\n        Headers: {\n          Content-Type: text/plain; charset=utf-8\n        },\n        Value: OK\n      }\n    }\n  }\n]\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.Usage.verified.txt#L1-L35' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Tests.Usage.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.flurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.flurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.flurl/lists"}