Exemplo n.º 1
0
            public void ValidatesArgs()
            {
                //Arrange
                var target = new AzureStorageFactory();

                //Act Assert
                Assert.That(() => target.GetAccount(null), Throws.ArgumentNullException);
                Assert.That(() => target.GetAccount(null, "key", true), Throws.ArgumentNullException);
                Assert.That(() => target.GetAccount("foo", null, true), Throws.ArgumentNullException);
            }
Exemplo n.º 2
0
            public void SuccessWithAccountName()
            {
                //Arrange
                var target = new AzureStorageFactory();

                //Act
                var result = target.GetAccount(TestHelpers.DevAccountName, TestHelpers.DevAccountKey, true);

                //Assert
                Assert.IsNotNull(result);
            }
Exemplo n.º 3
0
            public void SuccessWithConnectionString()
            {
                //Arrange
                var target = new AzureStorageFactory();

                //Act
                var result = target.GetAccount(TestHelpers.DevConnectionString);

                //Assert
                Assert.IsNotNull(result);
            }