Пример #1
0
 /// <summary>
 /// Sets up the SUT and needed services and and cleans up API key tbales.
 /// </summary>
 public ApiKeyRepositoryTests()
 {
     Repository    = new PostgreSqlApiKeyRepository(ConfigurationProvider.GetConfiguration());
     RightsService = new RightsService(new LoggerFactory(), new MemoryRightsRepository());
     DatabasePurger.PurgeApiKeys();
 }
Пример #2
0
 /// <summary>
 /// Purges API key tables.
 /// </summary>
 public void Dispose()
 {
     DatabasePurger.PurgeApiKeys();
 }