40 references to CreateBuilder
Microsoft.AspNetCore.Hosting.Tests (40)
WebHostTests.AsyncDisposable.cs (1)
14using (var host = CreateBuilder()
WebHostTests.cs (39)
27var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateBuilder().Build().StartAsync()); 34Assert.Throws<ArgumentNullException>(() => CreateBuilder().UseStartup((string)null)); 40using (var host = CreateBuilder().UseFakeServer().Build()) 59using (var host = CreateBuilder(config).UseFakeServer().Build()) 78using (var host = CreateBuilder(config).UseFakeServer().Build()) 98using (var host = CreateBuilder(config).UseFakeServer().Build()) 110using (var host = CreateBuilder().UseFakeServer().PreferHostingUrls(true).Build()) 129using (var host = CreateBuilder(config).UseFakeServer().PreferHostingUrls(true).Build()) 139using (var host = CreateBuilder() 158using (var host = CreateBuilder() 213using (var host = CreateBuilder(config) 252using (var host = CreateBuilder(config) 288using (var host = CreateBuilder(config) 310using (var host = CreateBuilder() 372using (var host = CreateBuilder() 405using (var host = CreateBuilder() 426using (var host = CreateBuilder() 462using (var host = CreateBuilder() 486using (var host = CreateBuilder() 523using (var host = CreateBuilder() 547using (var host = CreateBuilder() 575using (var host = CreateBuilder() 628using (var host = CreateBuilder() 671using (var host = CreateBuilder() 707using (var host = CreateBuilder() 726var builder = CreateBuilder() 740using (var host = CreateBuilder().UseFakeServer().ConfigureServices(services => services.AddOptions()).Build()) 751using (var host = CreateBuilder() 799using (var host = CreateBuilder().UseFakeServer().Build()) 822using (var host = CreateBuilder(config).UseFakeServer().Build()) 845using (var host = CreateBuilder(config).UseFakeServer().Build()) 862using (var host = CreateBuilder().UseFakeServer().Build()) 924using (var host = CreateBuilder() 986var builder = CreateBuilder() 1004var host = CreateBuilder() 1028var host = CreateBuilder() 1047using (var host = CreateBuilder() 1066using (var host = CreateBuilder() 1090var builder = CreateBuilder()