public void test_delete() { var redundantTable = new RedundantTableStorage<Customer>("UseDevelopmentStorage=true", "Customer", true, serviceBus, "RedundancyQueue", "UseDevelopmentStorage=true"); var customer = new Customer(); redundantTable.Insert(customer); redundantTable.Delete(customer.PartitionKey, customer.RowKey); IAzureTableUtility customerArchiver = MefBase.Container.GetExportedValue<IAzureTableUtility>(); customerArchiver.ConnectionString = "UseDevelopmentStorage=True"; customerArchiver.TableName = "TransactionLog"; Assert.IsTrue(customerArchiver.FindByPartitionKey<TableEntity>("Customer").Count() == 2); }
public void test_plan() { var customer = new Customer(); TransactionLog log = new TransactionLog() { Action = "UPSERT", Object = JsonConvert.SerializeObject(customer), ObjectId = $"{customer.PartitionKey}|{customer.RowKey}", TableName = "Customer", Type = "Customer" }; var action = log.Create("UseDevelopmentStorage=True"); action?.Invoke(); }