private static void SetupDependencies(IServiceCollection services) { var configurationBuilder = ServiceExtensions.BuildConfigurationBuilder(); var configuration = configurationBuilder.Build(); services.AddSingleton <IConfiguration>(configuration); ServiceExtensions.RegisterDependencyInjections(services, configuration); Provider = services.BuildServiceProvider(); }