public void AccountNumberValidatorTest() { AccountNumberValidator validator = new AccountNumberValidator("83101010230000261395100000"); var isCorrect = validator.isAccountNumberCorrect(); Assert.IsTrue(isCorrect); }
public BankAccountFacade(int accountNumber, int pinCode) { this.PinCode = pinCode; this.AccountNumber = accountNumber; _fundsValidator = new AccountFundsValidator(); _accountNumberValidator = new AccountNumberValidator(); _securityCodeValidator = new SecurityCodeValidator(); }
public void Tests(string accountNumber, bool isValid) { // Arrange // Act IValidator validator = new AccountNumberValidator(); // Assert Assert.AreEqual(isValid, validator.CheckIsAccountNumberValid(accountNumber)); }
public void Tests(string input, string expectedResult) { // Arrange // Act IValidator validator = new AccountNumberValidator(); // Assert Assert.AreEqual(expectedResult, validator.ValidateAccountNumber(input)); }
public void Tests(string accountNumber, bool isValid) { // Arrange var sut = new AccountNumberValidator(); // Act var result = sut.Validate(accountNumber); // Assert Assert.AreEqual(isValid, result); }
public void SetUp() { validator = new AccountNumberValidator(); }
public AccountNumberValidatorTests() { _numberValidator = new AccountNumberValidator(); }