public async Task SetUp() { this.repository = new DbAccountRepository(this.connectionFactory); using (var connection = await this.connectionFactory.GetConnectionAsync()) { await connection.ExecuteAsync($"DELETE FROM {AccountsTableName}"); } }
public void TestDb() { var con = "Data Source=core7.rigilog.com;Initial Catalog=Support_DB;User ID=dbo_Support_DB;Password=Zh!ef$dFR87tA"; var rep = new DbAccountRepository(con); var users = rep.GetAllUsers(); }