예제 #1
0
 /// <summary>
 /// Purges all tables used in these tests.
 /// </summary>
 public void Dispose()
 {
     DatabasePurger.PurgeTransactions();
     DatabasePurger.PurgeBatches();
     DatabasePurger.PurgeLocations();
     DatabasePurger.PurgeMaterials();
     DatabasePurger.PurgePlastics();
     DatabasePurger.PurgeUsers();
 }
예제 #2
0
 /// <summary>
 /// Sets up the SUT and needed services, and cleans up the users table.
 /// </summary>
 public UserRepositoryTests()
 {
     Repository             = new PostgreSqlUserRepository(ConfigurationProvider.GetConfiguration());
     PasswordHashingService = new PasswordHashingService(new LoggerFactory());
     DatabasePurger.PurgeUsers();
 }
예제 #3
0
 /// <summary>
 /// Cleans up the users table!
 /// </summary>
 public void Dispose()
 {
     DatabasePurger.PurgeUsers();
 }