{"id":24224645,"url":"https://github.com/edumserrano/dotnet-sdk-extensions","last_synced_at":"2025-07-08T05:33:54.640Z","repository":{"id":37957065,"uuid":"258808144","full_name":"edumserrano/dotnet-sdk-extensions","owner":"edumserrano","description":"This repo contains extensions to help build .NET applications, as well as extensions for unit and integration tests. It supports applications targeting .NET 6 and higher.","archived":false,"fork":false,"pushed_at":"2024-04-20T13:50:14.000Z","size":2966,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T14:39:58.051Z","etag":null,"topics":["asp","core","csharp","dotnet","extensions","guides","integration-testing","mocking","sdk-net","test","testing","tests","unit-testing","web","webapp"],"latest_commit_sha":null,"homepage":"","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/edumserrano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"edumserrano"}},"created_at":"2020-04-25T15:23:15.000Z","updated_at":"2024-06-08T17:58:06.908Z","dependencies_parsed_at":"2023-10-17T02:16:30.980Z","dependency_job_id":"70c49991-466b-4ddb-b862-a024a5c33f28","html_url":"https://github.com/edumserrano/dotnet-sdk-extensions","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumserrano%2Fdotnet-sdk-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumserrano%2Fdotnet-sdk-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumserrano%2Fdotnet-sdk-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumserrano%2Fdotnet-sdk-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edumserrano","download_url":"https://codeload.github.com/edumserrano/dotnet-sdk-extensions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233856655,"owners_count":18740989,"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":["asp","core","csharp","dotnet","extensions","guides","integration-testing","mocking","sdk-net","test","testing","tests","unit-testing","web","webapp"],"created_at":"2025-01-14T07:17:56.246Z","updated_at":"2025-07-08T05:33:54.633Z","avatar_url":"https://github.com/edumserrano.png","language":"C#","funding_links":["https://github.com/sponsors/edumserrano"],"categories":[],"sub_categories":[],"readme":"# Extensions for .NET SDK\n\n[![codecov](https://codecov.io/gh/edumserrano/dotnet-sdk-extensions/branch/main/graph/badge.svg?token=KYW77A6UV9)](https://codecov.io/gh/edumserrano/dotnet-sdk-extensions)\n[![Build, test and package](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/build-test-package.yml/badge.svg)](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/build-test-package.yml)\n[![Build Status](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/nuget-publish.yml/badge.svg)](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/nuget-publish.yml)\n[![dotnet format](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/dotnet-format.yml/badge.svg)](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/dotnet-format.yml)\n[![CodeQL](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/codeql.yml/badge.svg)](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/codeql.yml)\n[![Markdown link check](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/markdown-link-check.yml/badge.svg)](https://github.com/edumserrano/dotnet-sdk-extensions/actions/workflows/markdown-link-check.yml)\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/edumserrano)](https://github.com/sponsors/edumserrano)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-Eduardo%20Serrano-blue.svg)](https://www.linkedin.com/in/eduardomserrano/)\n\n- [Description](#description)\n- [Installing](#installing)\n- [Extensions list](#extensions-list)\n  - [For apps](#for-apps)\n  - [For integration tests](#for-integration-tests)\n  - [For unit tests](#for-unit-tests)\n  - [Other](#other)\n- [Debugging](#debugging)\n- [Dev notes](#dev-notes)\n\n## Description\n\nThis repo contains extensions to help build .NET applications, as well as extensions for unit and [integration tests](https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?#introduction-to-integration-tests). It supports applications targeting .NET 8.0 or higher.\n\n## Installing\n\nThis repo provides two NuGet packages:\n\n| NuGet                                                                                         |                                                                               Version                                                                                |                                Downloads                                |\n| --------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------: |\n| [dotnet-sdk-extensions](https://www.nuget.org/packages/dotnet-sdk-extensions)                 |             [![Nuget dotnet-sdk-extensions](https://img.shields.io/nuget/v/dotnet-sdk-extensions)](https://www.nuget.org/packages/dotnet-sdk-extensions)             |     ![Nuget](https://img.shields.io/nuget/dt/dotnet-sdk-extensions)     |\n| [dotnet-sdk-extensions-testing](https://www.nuget.org/packages/dotnet-sdk-extensions-testing) | [![Nuget dotnet-sdk-extensions-testing](https://img.shields.io/nuget/v/dotnet-sdk-extensions-testing)](https://www.nuget.org/packages/dotnet-sdk-extensions-testing) | ![Nuget](https://img.shields.io/nuget/dt/dotnet-sdk-extensions-testing) |\n\nInstallation is performed via NuGet and you can do it using the following commands:\n\n```\ndotnet add package dotnet-sdk-extensions\ndotnet add package dotnet-sdk-extensions-testing\n```\n\n## Extensions list\n\nThe extensions available are split into two groups:\n\n* Extensions to use on app code.\n* Extensions to use when doing integration and unit tests.\n\nFor more information about each extension check its docs. You can find the link to each extension's documentation below.\n\n### For apps\n\n* [Using `T` options classes instead of `IOptions\u003cT\u003e`](/docs/configuration/options-without-IOptions.md)\n* Extending [Polly](https://github.com/App-vNext/Polly)\n  * [Circuit breaker checker policy](/docs/polly/circuit-breaker-checker-policy.md)\n  * [Add a timeout policy to an HttpClient](/docs/polly/httpclient-with-timeout-policy.md)\n  * [Add a retry policy to an HttpClient](/docs/polly/httpclient-with-retry-policy.md)\n  * [Add a circuit breaker policy to an HttpClient](/docs/polly/httpclient-with-circuit-breaker-policy.md)\n  * [Add a fallback policy to an HttpClient](/docs/polly/httpclient-with-fallback-policy.md)\n  * [Add a set of resilience policies to an HttpClient](/docs/polly/httpclient-with-resilience-policies.md)\n  * [Extending the policy options validation](/docs/polly/extending-policy-options-validation.md)\n\n### For integration tests\n\n* [Providing test appsettings files to the test server](/docs/integration-tests/configuring-webhost.md)\n* [Override configuration values on the test server](/docs/integration-tests/override-configuration-value.md)\n* [Disable logs when doing integration tests](/docs/integration-tests/disable-logs-integration-tests.md)\n* [Mocking HttpClient's responses in-process](/docs/integration-tests/http-mocking-in-process.md)\n* [Mocking HttpClient's responses out-of-process](/docs/integration-tests/http-mocking-out-of-process.md)\n* [Integration tests for HostedServices (Background Services)](/docs/integration-tests/hosted-services.md)\n\n### For unit tests\n\n* [Mocking HttpClient's responses for unit testing](/docs/unit-tests/http-mocking-unit-tests.md)\n\n### Other\n\n* [Notes on WebApplicationFactory regarding asp.net integration tests](/docs/integration-tests/web-application-factory.md)\n\n## Debugging\n\nThe NuGet packages published include symbols generated with [sourcelink](https://github.com/dotnet/sourcelink).\n\nFor more information on how to debug the NuGet packages code from your application see:\n\n- [Exploring .NET Core's SourceLink - Stepping into the Source Code of NuGet packages you don't own](https://www.hanselman.com/blog/exploring-net-cores-sourcelink-stepping-into-the-source-code-of-nuget-packages-you-dont-own)\n- [How to Configure Visual Studio to Use SourceLink to Step into NuGet Package Source](https://aaronstannard.com/visual-studio-sourcelink-setup/).\n- [Source Link - microsoft docs](https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink)\n\n## Dev notes\n\nFor notes aimed at developers working on this repo or just trying to understand it go [here](/docs/dev-notes/README.md). It will show you how to build and run the solution among other things.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedumserrano%2Fdotnet-sdk-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedumserrano%2Fdotnet-sdk-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedumserrano%2Fdotnet-sdk-extensions/lists"}