コード例 #1
0
        public void WhenHaveExpiryMonth_ShouldHaveNoError()
        {
            var sut = new PaymentDetailsdtoValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.ExpiryMonth, DateTime.Now);
        }
コード例 #2
0
        public void WhenHaveCvv_ShouldHaveNoError()
        {
            var sut = new PaymentDetailsdtoValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.cvv, 1234);
        }
コード例 #3
0
        public void WhenHaveCurrency_ShouldHaveNoError()
        {
            var sut = new PaymentDetailsdtoValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.currency, "MUR");
        }
コード例 #4
0
        public void WhenCardNumberIs16Characters_ShouldHaveNoError()
        {
            var sut = new PaymentDetailsdtoValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.cardnumber, "1234567891234567");
        }