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); }
public void SuccessWithAccountName() { //Arrange var target = new AzureStorageFactory(); //Act var result = target.GetAccount(TestHelpers.DevAccountName, TestHelpers.DevAccountKey, true); //Assert Assert.IsNotNull(result); }
public void SuccessWithConnectionString() { //Arrange var target = new AzureStorageFactory(); //Act var result = target.GetAccount(TestHelpers.DevConnectionString); //Assert Assert.IsNotNull(result); }