Esempio n. 1
0
 protected override void SetupDatabase()
 {
     EventTestsRepository = new EventTestsRepository(DataAcceptanceTests.Config.DatabaseConnectionString);
     EventTestsRepository.DeletePayments().Wait();
     EventTestsRepository.DeleteTransfers().Wait();
     EventTestsRepository.StoreLastProcessedEventId("PeriodEnd-Payment", "PERIOD2").Wait();
     EventTestsRepository.StoreLastProcessedEventId("PeriodEnd-AccountTransfer", "PERIOD2").Wait();
 }
Esempio n. 2
0
 protected override void SetupDatabase()
 {
     EventTestsRepository = new EventTestsRepository(DataAcceptanceTests.Config.DatabaseConnectionString);
     EventTestsRepository.DeleteProviders().Wait();
     EventTestsRepository.DeleteFailedEvents().Wait();
     EventTestsRepository.StoreLastProcessedEventId(EventName, 2).Wait();
 }
Esempio n. 3
0
 protected override void SetupDatabase()
 {
     EventTestsRepository = new EventTestsRepository(DataAcceptanceTests.Config.DatabaseConnectionString);
     EventTestsRepository.DeleteApprenticeships().Wait();
     EventTestsRepository.DeleteFailedEvents().Wait();
     EventTestsRepository.StoreLastProcessedEventId("ApprenticeshipEventView", 2).Wait();
 }
Esempio n. 4
0
 protected override void SetupDatabase()
 {
     EventTestsRepository = new EventTestsRepository(DataAcceptanceTests.Config.DatabaseConnectionString);
     EventTestsRepository.DeleteEmploymentChecks().Wait();
     EventTestsRepository.DeleteFailedEvents().Wait();
     EventTestsRepository.StoreLastProcessedEventId("EmploymentCheckCompleteEvent", 2).Wait();
 }
Esempio n. 5
0
 protected override void SetupDatabase()
 {
     EventTestsRepository = new EventTestsRepository(DataAcceptanceTests.Config.DatabaseConnectionString);
     EventTestsRepository.DeleteAccounts().Wait();
     EventTestsRepository.DeleteLevyDeclarations().Wait();
     EventTestsRepository.DeleteEmployerAgreements().Wait();
     EventTestsRepository.DeleteFailedEvents().Wait();
     EventTestsRepository.StoreLastProcessedEventId(EventName, 2).Wait();
 }
Esempio n. 6
0
 protected override void SetupDatabase()
 {
     EventTestsRepository = new EventTestsRepository(DataAcceptanceTests.Config.DatabaseConnectionString);
     EventTestsRepository.DeleteDataLocks().Wait();
     EventTestsRepository.StoreLastProcessedEventId(typeof(DataLockEvent).Name, "0").Wait();
 }