73 references to UseServer
Microsoft.AspNetCore.Hosting.Tests (69)
GenericWebHostBuilderTests.cs (3)
52
.
UseServer
(server)
76
.
UseServer
(server)
121
.
UseServer
(server)
WebHostBuilderTests.cs (66)
29
builder = builder.
UseServer
(new TestServer());
44
using (var host = builder.
UseServer
(server).UseStartup("MissingStartupAssembly").Build())
56
var host = builder.
UseServer
(server).UseStartup<StartupStaticCtorThrows>().Build();
69
Assert.Throws<ArgumentNullException>(() => builder.
UseServer
(server).UseStartup((Func<WebHostBuilderContext, object>)null));
77
var ex = Assert.Throws<InvalidOperationException>(() => builder.
UseServer
(server).UseStartup<object>(context => null).Build());
86
var host = builder.
UseServer
(server)
119
var host = builder.
UseServer
(server)
134
var host = builder.
UseServer
(server).UseStartup<StartupCtorThrows>().Build();
147
var host = builder.
UseServer
(server).UseStartup<StartupThrowTypeLoadException>().Build();
160
var host = builder.
UseServer
(server).UseStartup<StartupCtorThrows>().Build();
177
var host = builder.
UseServer
(server).UseStartup<StartupConfigureServicesThrows>().Build();
190
var host = builder.
UseServer
(server).UseStartup<StartupConfigureServicesThrows>().Build();
203
.
UseServer
(new TestServer())
217
.
UseServer
(new TestServer())
242
.
UseServer
(new TestServer())
279
.
UseServer
(new TestServer())
307
.
UseServer
(new TestServer());
333
.
UseServer
(new TestServer())
353
.
UseServer
(new TestServer())
364
.
UseServer
(new TestServer())
384
.
UseServer
(new TestServer())
405
.
UseServer
(new TestServer())
421
.
UseServer
(new TestServer())
433
.
UseServer
(new TestServer())
451
.
UseServer
(new TestServer())
464
.
UseServer
(new TestServer())
493
.
UseServer
(new TestServer())
519
.
UseServer
(new TestServer())
545
.
UseServer
(new TestServer())
580
.
UseServer
(new TestServer())
607
.
UseServer
(new TestServer())
635
.
UseServer
(new TestServer())
655
.
UseServer
(new TestServer())
674
.
UseServer
(new TestServer())
696
.
UseServer
(new TestServer())
712
builder.
UseServer
(new TestServer());
728
.
UseServer
(new TestServer())
746
.
UseServer
(new TestServer())
764
.
UseServer
(new TestServer())
777
.
UseServer
(new TestServer())
793
.
UseServer
(new TestServer())
809
.
UseServer
(new TestServer())
823
.
UseServer
(new TestServer())
837
using (builder.
UseServer
(server)
858
using (var host = builder.
UseServer
(server)
874
using (var host = builder.
UseServer
(server)
892
.
UseServer
(new TestServer());
912
.
UseServer
(new TestServer());
929
.
UseServer
(new TestServer());
950
.
UseServer
(new TestServer());
978
.
UseServer
(new TestServer())
1050
.
UseServer
(new TestServer());
1071
.
UseServer
(new TestServer());
1088
.
UseServer
(new TestServer());
1124
.
UseServer
(new TestServer());
1152
.
UseServer
(new TestServer());
1167
.
UseServer
(new TestServer());
1183
.
UseServer
(new TestServer());
1204
.
UseServer
(new TestServer());
1224
.
UseServer
(new TestServer());
1248
.
UseServer
(new TestServer());
1277
.
UseServer
(new TestServer());
1295
.
UseServer
(new TestServer());
1332
.
UseServer
(new TestServer());
1350
.
UseServer
(new TestServer());
1375
.
UseServer
(new TestServer());
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
26
.
UseServer
(new NoopServer())
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (2)
WebHostServiceTests.cs (2)
22
var host = new WebHostBuilder().
UseServer
(new FakeServer()).Configure(x => { }).Build();
36
var host = new WebHostBuilder().
UseServer
(new FakeServer()).Configure(x => { }).Build();
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
97
var host = builder.
UseServer
(this).Build();