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