/// <summary> /// Purges all tables used in these tests. /// </summary> public void Dispose() { DatabasePurger.PurgeTransactions(); DatabasePurger.PurgeBatches(); DatabasePurger.PurgeLocations(); DatabasePurger.PurgeMaterials(); DatabasePurger.PurgePlastics(); DatabasePurger.PurgeUsers(); }
/// <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(); }
/// <summary> /// Cleans up the users table! /// </summary> public void Dispose() { DatabasePurger.PurgeUsers(); }