WebApplicationFactoryPoint>.WithWebHostBuilder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new WebApplicationFactoryconfiguration.
public:
Microsoft::AspNetCore::Mvc::Testing::WebApplicationFactory ^ WithWebHostBuilder(Action ^ configuration);
public Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory WithWebHostBuilder(Action configuration);
member this.WithWebHostBuilder : Action -> Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<'EntryPoint (requires 'EntryPoint : null)>
Public Function WithWebHostBuilder (configuration As Action(Of IWebHostBuilder)) As WebApplicationFactory(Of TEntryPoint)
Parameters
- configuration
- Action<IWebHostBuilder>
An Action
Returns
A new WebApplicationFactory