Create Method
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting.AspNetCore
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.AspNetCore.dll
Create(Action<IServiceCollection>, Action<IApplicationBuilder>, Action<IHostApplicationBuilder>, IWebMinimalHostFixture)
Creates and returns an IWebHostTest implementation.
public static IWebHostTest Create(Action<IServiceCollection> serviceSetup = null, Action<IApplicationBuilder> pipelineSetup = null, Action<IHostApplicationBuilder> hostSetup = null, IWebMinimalHostFixture hostFixture = null)
Parameters
serviceSetupAction<IServiceCollection>The IServiceCollection which may be configured.
pipelineSetupAction<IApplicationBuilder>The IApplicationBuilder which may be configured.
hostSetupAction<IHostApplicationBuilder>The IHostBuilder which may be configured.
hostFixtureIWebMinimalHostFixtureAn optional IWebHostFixture implementation to use instead of the default ManagedWebHostFixture instance.
Returns
- IWebHostTest
An instance of an IWebHostTest implementation.