/// <summary>
        /// Verifies the storage credentials.
        /// </summary>
        /// <returns><c>true</c> if the credentials are correct, <c>false</c> otherwise.</returns>
        public bool VerifyCredentials()
        {
            if (_storage == null)
            {
                return(false);
            }

            try
            {
                var containers = _storage.ListContainers();

                // It is necssary to enumerate in order to actually send the request
                foreach (var c in containers)
                {
                }

                return(true);
            }
            catch
            {
                return(false);
            }
        }
 public void CanListContainers()
 {
     Assert.IsTrue(BlobStorage.ListContainers().Contains(ContainerName));
     Assert.IsTrue(BlobStorage.ListContainers(ContainerName.Substring(0, 5)).Contains(ContainerName));
     Assert.IsFalse(BlobStorage.ListContainers("another-prefix").Contains(ContainerName));
 }