19 references to Services
Microsoft.AspNetCore.Mvc.FunctionalTests (19)
AsyncDisposalTest.cs (3)
44
var sink = Factory.
Services
.GetRequiredService<ControllerTestDisposeAsync>();
56
var sink = Factory.
Services
.GetRequiredService<ControllerTestDisposeAsync>();
68
var sink = Factory.
Services
.GetRequiredService<ControllerTestDisposeAsync>();
PageAsyncDisposalTest.cs (1)
42
var sink = Factory.
Services
.GetRequiredService<PageTestDisposeAsync>();
SimpleWithWebApplicationBuilderTests.cs (2)
266
var antiforgery = Factory.
Services
.GetRequiredService<IAntiforgery>();
267
var antiforgeryOptions = Factory.
Services
.GetRequiredService<IOptions<AntiforgeryOptions>>();
TestingInfrastructureInheritanceTests.cs (5)
62
Assert.NotNull(factory.
Services
);
63
Assert.NotNull(factory.
Services
.GetService(typeof(IConfiguration)));
73
var lifetimeService = (IHostApplicationLifetime)factory.
Services
.GetService(typeof(IHostApplicationLifetime));
86
using var scope = factory.
Services
.CreateAsyncScope();
101
using var scope = factory.
Services
.CreateScope();
TestingInfrastructureTests.cs (8)
199
Assert.NotNull(factory.
Services
);
200
Assert.NotNull(factory.
Services
.GetService(typeof(IConfiguration)));
208
Assert.NotNull(factory.
Services
);
209
Assert.NotNull(factory.
Services
.GetService(typeof(IConfiguration)));
217
Assert.NotNull(factory.
Services
);
218
Assert.NotNull(factory.
Services
.GetService(typeof(IConfiguration)));
226
Assert.NotNull(factory.
Services
);
227
Assert.NotNull(factory.
Services
.GetService(typeof(IConfiguration)));