public void WhenHaveExpiryMonth_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.ExpiryMonth, DateTime.Now); }
public void WhenHaveCvv_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.cvv, 1234); }
public void WhenHaveCurrency_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.currency, "MUR"); }
public void WhenCardNumberIs16Characters_ShouldHaveNoError() { var sut = new PaymentDetailsdtoValidator(); sut.ShouldNotHaveValidationErrorFor(m => m.cardnumber, "1234567891234567"); }