public void TestCleanup() { if (reminder != null && SiloInstanceTableTestConstants.DeleteEntriesAfterTest) { reminder.TestOnlyClearTable().Wait(); reminder = null; } logger.Info("Test {0} completed - Outcome = {1}", TestContext.TestName, TestContext.CurrentTestOutcome); }
private async Task Initialize() { deploymentId = "test-" + Guid.NewGuid(); int generation = SiloAddress.AllocateNewGeneration(); logger.Info("DeploymentId={0} Generation={1}", deploymentId, generation); GlobalConfiguration config = new GlobalConfiguration { DeploymentId = deploymentId, DataConnectionStringForReminders = connectionString, AdoInvariantForReminders = AdoNetInvariants.InvariantNameSqlServer }; var rmndr = new SqlReminderTable(); await rmndr.Init(config, logger).WithTimeout(timeout); reminder = rmndr; }
private async Task Initialize() { serviceId = Guid.NewGuid(); deploymentId = "test-" + Guid.NewGuid(); int generation = SiloAddress.AllocateNewGeneration(); siloAddress = SiloAddress.NewLocalAddress(generation); logger.Info("DeploymentId={0} Generation={1}", deploymentId, generation); GlobalConfiguration config = new GlobalConfiguration { DeploymentId = deploymentId, DataConnectionStringForReminders = relationalStorage.ConnectionString, AdoInvariantForReminders = relationalStorage.InvariantName }; var rmndr = new SqlReminderTable(); await rmndr.Init(config, logger).WithTimeout(timeout); reminder = rmndr; }