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(); }
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); }
public static void Cleanup() { var logoStorage = new FilesBlobContainer(account, LogoStoreContainer, "xxx"); logoStorage.DeleteContainerAsync().Wait(); }