public void Blob_ExtractConnectionString_AppSettingsBlobConnectionString_ReturnsBlobConnectionString()
        {
            // Setup
            AzureBlobBroker broker = new AzureBlobBroker();
            Dictionary<string, string> appSettings = new Dictionary<string, string>();
            appSettings.Add("ResourceBrokerBlobConnectionString", ConnectionString);

            // Act
            string c = broker.ExtractConnectionString(appSettings);

            // Assert
            Assert.AreEqual(c, ConnectionString);
        }
        public void Blob_ExtractConnectionString_WithQueueConnectionString_ThrowsException()
        {
            // Setup
            AzureBlobBroker broker = new AzureBlobBroker();
            Dictionary<string, string> appSettings = new Dictionary<string, string>();
            appSettings.Add("ResourceBrokerQueueConnectionString", ConnectionString);

            // Act
            this.ExpectException<InvalidOperationException>(() => broker.ExtractConnectionString(appSettings));
        }
 public void Blob_ExtractConnectionString_AppSettingsBlobConnectionStringIsNull_ThrowsArgumentException()
 {
     AzureBlobBroker broker = new AzureBlobBroker();
     Dictionary<string, string> appSettings = new Dictionary<string, string>();
     appSettings.Add("ResourceBrokerBlobConnectionString", null);
     this.ExpectException<InvalidOperationException>(() => broker.ExtractConnectionString(appSettings));
 }