18 instantiations of FakeHostOptions
Microsoft.Extensions.Hosting.Testing (2)
FakeHost.cs (2)
35
public static IHostBuilder CreateBuilder() => new FakeHostBuilder(new
FakeHostOptions
());
46
var options = new
FakeHostOptions
();
Microsoft.Extensions.Hosting.Testing.Tests (16)
FakeHostBuilderTests.cs (5)
18
private static readonly FakeHostOptions _noFakesOptions =
new
()
29
var hostBuilderServices = new FakeHostBuilder(new
FakeHostOptions
{ }).Build().Services;
38
var hostBuilderServices = new FakeHostBuilder(new
FakeHostOptions
()).Build().Services;
45
var hostBuilderServices = new FakeHostBuilder(new
FakeHostOptions
()).Build().Services;
54
var hostBuilderServices = new FakeHostBuilder(new
FakeHostOptions
{ FakeLogging = false }).Build().Services;
FakeHostTests.cs (8)
48
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
{ StartUpTimeout = TimeSpan.Zero });
66
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
{ StartUpTimeout = TimeSpan.Zero });
86
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
{ StartUpTimeout = TimeSpan.FromMilliseconds(-1) });
108
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
{ ShutDownTimeout = TimeSpan.Zero });
125
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
{ StartUpTimeout = TimeSpan.Zero });
146
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
{ StartUpTimeout = TimeSpan.FromMilliseconds(-1) });
166
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
()) { TimeProvider = new FakeTimeProvider() };
179
var sut = new FakeHost(hostMock.Object, new
FakeHostOptions
()) { TimeProvider = new FakeTimeProvider() };
HostTerminatorServiceTests.cs (3)
21
var options = new
FakeHostOptions
();
38
var options = new
FakeHostOptions
();
57
var options = new
FakeHostOptions
();
21 references to FakeHostOptions
Microsoft.Extensions.Hosting.Testing (15)
FakeHost.cs (9)
22
private readonly
FakeHostOptions
_options;
25
internal FakeHost(IHost host,
FakeHostOptions
options)
40
/// <param name="configure">The options to configure the <see cref="
FakeHostOptions
"/> instance.</param>
42
public static IHostBuilder CreateBuilder(Action<
FakeHostOptions
> configure)
46
var
options = new FakeHostOptions();
54
/// <param name="options">An <see cref="
FakeHostOptions
"/> instance.</param>
56
public static IHostBuilder CreateBuilder(
FakeHostOptions
options)
67
/// <remarks>If no cancellation token is given, a new one using <see cref="
FakeHostOptions
.StartUpTimeout"/> is used.</remarks>
90
/// <remarks>If no cancellation token is given, a new one using <see cref="
FakeHostOptions
.StartUpTimeout"/> is used.</remarks>
FakeHostBuilder.cs (3)
17
private readonly
FakeHostOptions
_options;
19
internal FakeHostBuilder(
FakeHostOptions
options)
24
internal FakeHostBuilder(IHostBuilder builder,
FakeHostOptions
options)
HostTerminatorService.cs (3)
14
/// Terminates its host after a timeout set in <see cref="
FakeHostOptions
.TimeToLive"/>.
21
private readonly
FakeHostOptions
_options;
30
public HostTerminatorService(IHost host,
FakeHostOptions
options, ILogger<HostTerminatorService> logger)
Microsoft.Extensions.Hosting.Testing.Tests (6)
FakeHostBuilderTests.cs (3)
18
private static readonly
FakeHostOptions
_noFakesOptions = new()
31
var
options = hostBuilderServices.GetRequiredService<
FakeHostOptions
>();
HostTerminatorServiceTests.cs (3)
21
var
options = new FakeHostOptions();
38
var
options = new FakeHostOptions();
57
var
options = new FakeHostOptions();