public StorageHandlerSimulation(MessageHubSimulationConfig configuration) { var blobStorageSingleton = new StorageServiceClientFactory(configuration.BlobStorageConnectionString); EnsureTestBlobStorage(blobStorageSingleton, configuration.BlobStorageContainerName); var storageConfig = new StorageConfig(configuration.BlobStorageContainerName); StorageHandler = new StorageHandler(blobStorageSingleton, storageConfig); }
public void Create_ReturnsBlobServiceClient() { // arrange var target = new StorageServiceClientFactory("DefaultEndpointsProtocol=https;AccountName=test;AccountKey=test;EndpointSuffix=core.windows.net"); // act var actual = target.Create(); // assert Assert.NotNull(actual); }