public void CheckPaymentValid_False_IfAccountNull() { var bacsPaymentValidator = new BacsPaymentValidator(); var request = new MakePaymentRequest(); Account account = null; var validationResult = bacsPaymentValidator.CheckPaymentValid(request, account); Assert.That(validationResult, Is.False); }
public void CheckPaymentValid_True_IfAllowedSchemesBacs() { var bacsPaymentValidator = new BacsPaymentValidator(); var request = new MakePaymentRequest(); Account account = new Account { AllowedPaymentSchemes = AllowedPaymentSchemes.Bacs }; var validationResult = bacsPaymentValidator.CheckPaymentValid(request, account); Assert.That(validationResult, Is.True); }