public void WhenHaveExpiryMonth_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.ExpiryMonth, DateTime.Now); }
public void WhenHaveCurrencyNull_ShouldHaveError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldHaveValidationErrorFor(m => m.currency, null as string); }
public void WhenHaveCurrency_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.currency, "MUR"); }
public void WhenCvvGreaterthanFourDigits_ShouldHaveError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldHaveValidationErrorFor(m => m.cvv, 12345); }
public void WhenHaveCvv_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.cvv, 1234); }
public void WhenCvvLessthan4Characters_ShouldHaveError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldHaveValidationErrorFor(m => m.cvv, 123); }
public void WhenCardNumberIs16Characters_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.cardnumber, "1234567891234567"); }
public void WhenCardNumberLessthan16Characters_ShouldHaveError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldHaveValidationErrorFor(m => m.cardnumber, "123455"); }