TeePee 1.0.18

A fluent API to configure HttpClients for unit testing.

Install-Package TeePee -Version 1.0.18
dotnet add package TeePee --version 1.0.18
<PackageReference Include="TeePee" Version="1.0.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TeePee --version 1.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TeePee is a fluent API to configure HttpClients for unit testing.

var teePeeBuilder = new TeePeeBuilder();

teePeeBuilder.ForRequest("https://some.api/path/resource", HttpMethod.Post)
             .WithBody(new { Value = 12 })
             .ContainingQueryParam("filter", "those")
             .ContainingHeader("ApiKey", "123abc-xyz987");
             
var subjectUnderTest = Resolve.WithTypedClient<UserController, GitHubApiClient>(
                          services => 
                          {
                             var configuration = UnitTestConfig.LoadUnitTestConfig();
                             services.AddGitHubApi(configuration);                          
                          },
                          teePeeBuilder);

Documentation | Examples

TeePee is a fluent API to configure HttpClients for unit testing.

var teePeeBuilder = new TeePeeBuilder();

teePeeBuilder.ForRequest("https://some.api/path/resource", HttpMethod.Post)
             .WithBody(new { Value = 12 })
             .ContainingQueryParam("filter", "those")
             .ContainingHeader("ApiKey", "123abc-xyz987");
             
var subjectUnderTest = Resolve.WithTypedClient<UserController, GitHubApiClient>(
                          services => 
                          {
                             var configuration = UnitTestConfig.LoadUnitTestConfig();
                             services.AddGitHubApi(configuration);                          
                          },
                          teePeeBuilder);

Documentation | Examples

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.18 74 10/19/2020
1.0.17 80 10/19/2020
1.0.15-alpha 115 10/9/2020