다음을 통해 공유


WebApplicationFactory<TEntryPoint>.WithWebHostBuilder 메서드

정의

에서 추가로 사용자 지정하는 을 사용하여 IWebHostBuilderWebApplicationFactory<TEntryPoint>configuration만듭니다.

public:
 Microsoft::AspNetCore::Mvc::Testing::WebApplicationFactory<TEntryPoint> ^ WithWebHostBuilder(Action<Microsoft::AspNetCore::Hosting::IWebHostBuilder ^> ^ configuration);
public Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<TEntryPoint> WithWebHostBuilder (Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configuration);
member this.WithWebHostBuilder : Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<'EntryPoint (requires 'EntryPoint : null)>
Public Function WithWebHostBuilder (configuration As Action(Of IWebHostBuilder)) As WebApplicationFactory(Of TEntryPoint)

매개 변수

configuration
Action<IWebHostBuilder>

IWebHostBuilder를 구성하기 위한 Action<T>입니다.

반환

WebApplicationFactory<TEntryPoint>입니다.

적용 대상