1 type derived from WebApplicationFactory
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
912private sealed class DelegatedWebApplicationFactory : WebApplicationFactory<TEntryPoint>
29 references to WebApplicationFactory
Microsoft.AspNetCore.Mvc.Testing (29)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CustomJsonSerializerContext.g.cs (2)
26public static global::Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<TEntryPoint>.CustomJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<TEntryPoint>.CustomJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
WebApplicationFactory.cs (18)
46private readonly List<WebApplicationFactory<TEntryPoint>> _derivedFactories = new(); 50/// Creates an instance of <see cref="WebApplicationFactory{TEntryPoint}"/>. This factory can be used to 53/// The <see cref="WebApplicationFactory{TEntryPoint}"/> will find the entry point class of <typeparamref name="TEntryPoint"/> 61/// In case an attribute with the right key can't be found, <see cref="WebApplicationFactory{TEntryPoint}"/> 77/// Finalizes an instance of the <see cref="WebApplicationFactory{TEntryPoint}"/> class. 85/// Gets the <see cref="TestServer"/> created by this <see cref="WebApplicationFactory{TEntryPoint}"/>. 102/// Gets the <see cref="IServiceProvider"/> created by the server associated with this <see cref="WebApplicationFactory{TEntryPoint}"/>. 128/// <see cref="WebApplicationFactory{TEntryPoint}.WithWebHostBuilder(Action{IWebHostBuilder})"/>. 130public IReadOnlyList<WebApplicationFactory<TEntryPoint>> Factories => _derivedFactories.AsReadOnly(); 138/// Creates a new <see cref="WebApplicationFactory{TEntryPoint}"/> with a <see cref="IWebHostBuilder"/> 144/// <returns>A new <see cref="WebApplicationFactory{TEntryPoint}"/>.</returns> 145public WebApplicationFactory<TEntryPoint> WithWebHostBuilder(Action<IWebHostBuilder> configuration) => 148internal virtual WebApplicationFactory<TEntryPoint> WithWebHostBuilderCore(Action<IWebHostBuilder> configuration) 282return declaringType != typeof(WebApplicationFactory<>); 369typeof(WebApplicationFactory<TEntryPoint>).Name, 800/// Configures <see cref="HttpClient"/> instances created by this <see cref="WebApplicationFactory{TEntryPoint}"/>. 892foreach (var factory in _derivedFactories) 961internal override WebApplicationFactory<TEntryPoint> WithWebHostBuilderCore(Action<IWebHostBuilder> configuration)
WebApplicationFactoryClientOptions.cs (5)
13/// <see cref="WebApplicationFactory{TEntryPoint}.CreateClient(WebApplicationFactoryClientOptions)"/>. 37/// <see cref="WebApplicationFactory{TEntryPoint}.CreateClient(WebApplicationFactoryClientOptions)"/>. 44/// <see cref="WebApplicationFactory{TEntryPoint}.CreateClient(WebApplicationFactoryClientOptions)"/> 52/// created by calling <see cref="WebApplicationFactory{TEntryPoint}.CreateClient(WebApplicationFactoryClientOptions)"/> 60/// <see cref="WebApplicationFactory{TEntryPoint}.CreateClient(WebApplicationFactoryClientOptions)"/>
WebApplicationFactoryContentRootAttribute.cs (4)
10/// Metadata that <see cref="WebApplicationFactory{TEntryPoint}"/> uses to find out the content 12/// <see cref="WebApplicationFactory{TEntryPoint}"/> will iterate over all the instances of 16/// <see cref="WebApplicationFactory{TEntryPoint}"/> will check for the existence of the marker 28/// key is used by <see cref="WebApplicationFactory{TEntryPoint}"/> to determine what of the