예제 #1
0
        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);
        }
예제 #2
0
        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);
        }