public static void SetupTestAppDependencies() { IServiceCollection services = new ServiceCollection(); var config = new ApplicationConfiguration() { AppBasePath = GetDatabasePath(), DatabaseName = "TennisMatchSpyTest.db" }; services.AddSingleton(config); services.AddSingleton <IHtmlDownloader, LocalHtmlDownloader>(); services.AddSingleton <DatabaseInitializer>(); AppDependencySetup.ConfigureDependencies(services); }