public virtual void Setup() { Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) .Enrich.FromLogContext() .WriteTo.Console() .CreateLogger(); DbConnectionStringProvider = A.Fake <IDbConnectionStringProvider>(); A.CallTo(() => DbConnectionStringProvider.Get()).Returns(@"Server=127.0.0.1;Port=5433;Database=scrumify-test;Userid=postgres;Password=postgres;SslMode=Require;"); }
public DbConnectionProvider(IDbConnectionStringProvider connectionStringDataProvider) { this.connectionStringDataProvider = connectionStringDataProvider; }
public SqlConnectionProvider(IDbConnectionStringProvider connectionStringProvider) { this.connectionStringProvider = connectionStringProvider; }
public DbManagerFactory(IDbUtils dbUtilsUtils, IDbConnectionStringProvider connectionStringProvider) { _connectionStringProvider = connectionStringProvider ?? throw new ArgumentNullException(nameof(connectionStringProvider)); _dbUtils = dbUtilsUtils ?? throw new ArgumentNullException(nameof(dbUtilsUtils)); }
public ValuesController(IDbConnectionStringProvider dbConnectionStringProvider) { this.dbConnectionStringProvider = dbConnectionStringProvider; }
public QueryExecuter(IDbConnectionStringProvider dbConnectionStringProvider) { this.dbConnectionStringProvider = dbConnectionStringProvider; }