2 writes to _server
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
200
_server
= CreateServer(builder);
214
_server
= (TestServer)_host.Services.GetRequiredService<IServer>();
8 references to _server
Microsoft.AspNetCore.Mvc.Testing (8)
WebApplicationFactory.cs (8)
79
return
_server
;
91
return _host?.Services ??
_server
.Host.Services;
139
[MemberNotNull(nameof(
_server
))]
142
if (
_server
!= null)
204
[MemberNotNull(nameof(
_server
))]
484
client =
_server
.CreateClient();
493
var serverHandler =
_server
.CreateHandler();
592
_server
?.Dispose();