public void List_Blob_Object()
        {
            IAzureBlobObjectContainer<TestBlobObject> testObjectContainer = new AzureBlobObjectContainer<TestBlobObject>(CloudStorageAccount.DevelopmentStorageAccount, "test3");

            var testMessage = new TestBlobObject
            {
                Name = "Two",
                Price = 250
            };

            testObjectContainer.AddOrReplace(testMessage, "testmessage0/test/test1/test2");
            testObjectContainer.AddOrReplace(testMessage, "testmessage1");
            testObjectContainer.AddOrReplace(testMessage, "testmessage2");

            var names = testObjectContainer.ListNames();
            Assert.AreEqual(3, names.Count);
        }
Esempio n. 2
0
        public void List_Blob_Object()
        {
            IAzureBlobObjectContainer <TestBlobObject> testObjectContainer = new AzureBlobObjectContainer <TestBlobObject>(CloudStorageAccount.DevelopmentStorageAccount, "test3");

            var testMessage = new TestBlobObject
            {
                Name  = "Two",
                Price = 250
            };

            testObjectContainer.AddOrReplace(testMessage, "testmessage0/test/test1/test2");
            testObjectContainer.AddOrReplace(testMessage, "testmessage1");
            testObjectContainer.AddOrReplace(testMessage, "testmessage2");

            var names = testObjectContainer.ListNames();

            Assert.AreEqual(3, names.Count);
        }