public void Test_SaveLoadDeleteItem()
 {
     var x = new GenericBlobStorage<TestClass>(account, _containerName);
     x.Create();
     TestClass expected = new TestClass { Filename = 5.ToString(), Value = 5 };
     x.Save(expected);
     TestClass value = x.Load(expected);
     Assert.AreEqual(expected.Value, value.Value);
     x.Delete(expected);
     x.Delete();
 }
 public void Test_SaveListDeleteItem()
 {
     var x = new GenericBlobStorage<TestClass>(account, _containerName);
     x.Create();
     TestClass class1 = new TestClass { Filename = 1.ToString(), Value = 1 };
     TestClass class2 = new TestClass { Filename = 2.ToString(), Value = 2 };
     TestClass class3 = new TestClass { Filename = 3.ToString(), Value = 3 };
     x.Save(class1);
     x.Save(class2);
     x.Save(class3);
     Assert.IsTrue(x.Exists(class1));
     var blobs = x.List();
     Assert.AreEqual(3, blobs.Count);
     foreach (TestClass blob in blobs)
     {
         TestClass item = x.Load(blob);
         Assert.IsTrue(item.Value > 0);
         Assert.IsTrue(item.Value < 4);
     }
     x.Delete(class3);
     x.Delete(class2);
     x.Delete(class1);
     x.Delete();
 }
 public void Test_GetPathName()
 {
     var x = new GenericBlobStorage<TestClass>(account, _containerName);
     Assert.AreEqual(@"Karell.Azure.Storage.Tests.TestGenericBlobStorage+TestClass/test", x.Filename("test"));
 }