Cuemon.Extensions.Xunit.Hosting.AspNetCore 6.2.0

The Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace contains types that provides a uniform way of doing unit testing that depends on ASP.NET Core and used in conjunction with Microsoft Dependency Injection. The namespace relates to the Microsoft.AspNetCore.TestHost namespace.

Install-Package Cuemon.Extensions.Xunit.Hosting.AspNetCore -Version 6.2.0
dotnet add package Cuemon.Extensions.Xunit.Hosting.AspNetCore --version 6.2.0
<PackageReference Include="Cuemon.Extensions.Xunit.Hosting.AspNetCore" Version="6.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cuemon.Extensions.Xunit.Hosting.AspNetCore --version 6.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cuemon.Extensions.Xunit.Hosting.AspNetCore, 6.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cuemon.Extensions.Xunit.Hosting.AspNetCore as a Cake Addin
#addin nuget:?package=Cuemon.Extensions.Xunit.Hosting.AspNetCore&version=6.2.0

// Install Cuemon.Extensions.Xunit.Hosting.AspNetCore as a Cake Tool
#tool nuget:?package=Cuemon.Extensions.Xunit.Hosting.AspNetCore&version=6.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version: 6.0.0
Availability: NET Core 3.1, NET 5.0
 
# New Features
- ADDED FakeHttpResponseFeature class in the Cuemon.Extensions.Xunit.Hosting.AspNetCore.Http.Features namespace that represents a way to trigger IHttpResponseFeature.OnStarting
- ADDED FakeHttpContextAccessor class in the Cuemon.Extensions.Xunit.Hosting.AspNetCore.Http namespace that provides a unit test implementation of IHttpContextAccessor
- ADDED AspNetCoreHostFixture class in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that provides a default implementation of the IAspNetCoreHostFixture interface
- ADDED AspNetCoreHostTest{T} class in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that represents a base class from which all implementations of unit testing, that uses Microsoft Dependency Injection and depends on ASP.NET Core, should derive
- ADDED IAspNetCoreHostFixture interface in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that provides a way to use Microsoft Dependency Injection in unit tests tailored for ASP.NET Core
- ADDED IMiddlewareTest interface in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that represents the members needed for ASP.NET Core middleware testing
- ADDED IPipelineTest interface in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that represents the members needed for ASP.NET Core pipeline testing
- ADDED MiddlewareTestFactory class in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that provides a set of static methods for ASP.NET Core middleware unit testing
- ADDED ServiceCollectionExtensions class in the Cuemon.Extensions.Xunit.Hosting.AspNetCore namespace that consist of extension methods for the IServiceCollection interface: AddFakeHttpContextAccessor

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Cuemon.Extensions.Xunit.Hosting.AspNetCore:

Package Downloads
Cuemon.Extensions.Xunit.Hosting.AspNetCore.Mvc
The Cuemon.Extensions.Xunit.Hosting.AspNetCore.Mvc namespace contains types that provides a uniform way of doing unit testing that depends on ASP.NET Core MVC and used in conjunction with Microsoft Dependency Injection. The namespace relates to the Microsoft.AspNetCore.Mvc.Testing namespace.
Cuemon.Extensions.Xunit.App
Provides a convenient set of default API additions for building .NET Core test projects based on xUnit.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
6.2.0 187 5/30/2021
6.1.0 83 5/16/2021
6.0.1 64 5/3/2021
6.0.1-rc 72 5/3/2021
6.0.0 75 4/18/2021
6.0.0-rc.23 65 4/18/2021
6.0.0-rc.21 37 4/12/2021
6.0.0-rc.20 53 4/1/2021
6.0.0-rc.18 137 3/22/2021
6.0.0-rc.17 48 3/14/2021
6.0.0-rc.16 77 3/7/2021
6.0.0-rc.15 66 3/4/2021
6.0.0-rc.14 83 3/4/2021
6.0.0-rc.12 91 3/3/2021
6.0.0-rc.6 62 2/28/2021
6.0.0-rc.2 67 2/28/2021