예제 #1
0
        public void OneTimeSetUp()
        {
            _connection = new NpgsqlConnection(ConnectionString.TestDatabase());
            _connection.Open();
            var npgsqlCommand = _connection.CreateCommand();

            npgsqlCommand.CommandText = "SET deadlock_timeout TO 30";
            npgsqlCommand.ExecuteNonQuery();

            _builder = new DbContextOptionsBuilder();
            _builder.UseNpgsql(_connection);
        }
 public void RunBeforeAnyTests()
 {
     _builder = new DbContextOptionsBuilder();
     _builder.UseNpgsql(ConnectionString.TestDatabase());
 }