public void PutAttrubute_Should_Succeed() { var store = new ClientDetailsStore(); AwsClientDetails clientDetails = store.Load(Container); SimpleDBHelper helper = new SimpleDBHelper(clientDetails); const string domainName = "TestDomain"; const string itemName = "TesItem"; const string name = "attributeName"; const bool replace = true; string value = DateTime.Now.ToLongTimeString(); helper.PutAttribute(domainName, itemName, name, replace, value); }
public void DeleteAttributes_Should_Succeed() { var store = new ClientDetailsStore(); AwsClientDetails clientDetails = store.Load(Container); SimpleDBHelper helper = new SimpleDBHelper(clientDetails); const string domainName = "TestDomain"; const string itemName = "TesItem"; const string attributeName = "attributeName"; string expectedValue = DateTime.Now.ToLongTimeString(); // Ensure the domain exists and store the test item. helper.CreateDomain(domainName); helper.PutAttribute(domainName, itemName, attributeName, true, expectedValue); helper.DeleteAttributes(domainName, itemName, new [] { attributeName }); }