private static async Task CheckCreateDbAndClearDbAsync(IStartupChecker startup, string dbConnectionString)
        {
            await startup.CheckAsync(true);

            // delete database before each test
            NodeRepositoryPostgres.EmptyRepository(dbConnectionString);
            TxRepositoryPostgres.EmptyRepository(dbConnectionString);
            FeeQuoteRepositoryPostgres.EmptyRepository(dbConnectionString);
        }
Пример #2
0
 protected override void CleanRepositories(string dbConnectionString)
 {
     NodeRepositoryPostgres.EmptyRepository(DBConnectionStringDDL ?? dbConnectionString);
     TxRepositoryPostgres.EmptyRepository(DBConnectionStringDDL ?? dbConnectionString);
     FeeQuoteRepositoryPostgres.EmptyRepository(DBConnectionStringDDL ?? dbConnectionString);
 }