private static IStorageBlobClient CreateClient() { Mock <IServiceProvider> services = new Mock <IServiceProvider>(MockBehavior.Strict); StorageClientFactory clientFactory = new StorageClientFactory(); services.Setup(p => p.GetService(typeof(StorageClientFactory))).Returns(clientFactory); IStorageAccount account = new StorageAccount(CloudStorageAccount.DevelopmentStorageAccount, services.Object); return(account.CreateBlobClient()); }
private static IStorageBlobClient CreateClient() { IStorageAccount account = new StorageAccount(CloudStorageAccount.DevelopmentStorageAccount); return(account.CreateBlobClient()); }