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