예제 #1
0
        public static void Cleanup()
        {
            var account     = CloudConfiguration.GetStorageAccount("DataConnectionString");
            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            logoStorage.DeleteContainer();
        }
        public static void Initialize(TestContext context)
        {
            account = CloudStorageAccount.Parse("UseDevelopmentStorage=true");
            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            logoStorage.EnsureExistsAsync().Wait();
        }
예제 #3
0
        public static void Initialize(TestContext context)
        {
            var account     = CloudConfiguration.GetStorageAccount("DataConnectionString");
            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            logoStorage.EnsureExist();
        }
        public async Task SaveAndGetData()
        {
            var objId = Guid.NewGuid().ToString();

            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            var data = new byte[] { 1, 2, 3, 4 };
            await logoStorage.SaveAsync(objId, data);

            var retrievedData = await logoStorage.GetAsync(objId);

            var result = from x in data
                         join y in retrievedData on x equals y
                         select x;

            Assert.IsTrue(data.Length == retrievedData.Length && result.Count() == data.Length);
        }
        public void SaveAndGetData()
        {
            var objId = Guid.NewGuid().ToString();

            var account = CloudConfiguration.GetStorageAccount("DataConnectionString");
            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            var data = new byte[] { 1, 2, 3, 4 };
            logoStorage.Save(objId, data);

            var retrievedData = logoStorage.Get(objId);

            var result = from x in data
                         join y in retrievedData on x equals y
                         select x;

            Assert.IsTrue(data.Length == retrievedData.Length && result.Count() == data.Length);
        }
예제 #6
0
        public void SaveAndGetData()
        {
            var objId = Guid.NewGuid().ToString();

            var account     = CloudConfiguration.GetStorageAccount("DataConnectionString");
            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            var data = new byte[] { 1, 2, 3, 4 };

            logoStorage.Save(objId, data);

            var retrievedData = logoStorage.Get(objId);

            var result = from x in data
                         join y in retrievedData on x equals y
                         select x;

            Assert.IsTrue(data.Length == retrievedData.Length && result.Count() == data.Length);
        }
 public static void Initialize(TestContext context)
 {
     var account = CloudConfiguration.GetStorageAccount("DataConnectionString");
     var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");
     logoStorage.EnsureExist();
 }
 public static void Cleanup()
 {
     var account = CloudConfiguration.GetStorageAccount("DataConnectionString");
     var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");
     logoStorage.DeleteContainer();
 }
        public static void Cleanup()
        {
            var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx");

            logoStorage.DeleteContainerAsync().Wait();
        }