public FilterObjectTests() { var webHostBuilder = new WebHostBuilder() .ConfigureAppConfiguration(config => config.AddUserSecrets <Startup>()) .ConfigureServices(services => { services.AddScoped <IQueryAppsServices, QueryAppsServices>(); }) .UseEnvironment("Development") .UseStartup <Startup>(); _server = new TestServer(webHostBuilder); _httpClient = _server.CreateClient(); _queryAppsServices = _server.Host.Services.GetRequiredService <IQueryAppsServices>(); }
public DocumentRequestController(IHealthCheckServices healthCheckServices, IQueryAppsServices queryAppsServices, ILogger <DocumentRequestController> logger) { _healthCheckServices = healthCheckServices; _queryAppsServices = queryAppsServices; _logger = logger; }