WebApplicationFactory<TEntryPoint>.CreateWebHostBuilder Method


Creates a IWebHostBuilder used to set up TestServer.

 virtual Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ CreateWebHostBuilder();
protected virtual Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateWebHostBuilder ();
protected virtual Microsoft.AspNetCore.Hosting.IWebHostBuilder? CreateWebHostBuilder ();
abstract member CreateWebHostBuilder : unit -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
override this.CreateWebHostBuilder : unit -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Protected Overridable Function CreateWebHostBuilder () As IWebHostBuilder


A IWebHostBuilder instance.


The default implementation of this method looks for a public static IWebHostBuilder CreateWebHostBuilder(string[] args) method defined on the entry point of the assembly of TEntryPoint and invokes it passing an empty string array as arguments.

Applies to