Beispiel #1
0
        public bool WhenTransferDateIsFuture_ThenValidationFailsV2(int offset)
        {
            var sut = new DateNotPastValidatorV2(new FakeDateTimeService());
            var cmd = new MakeTransfer {
                Date = presentDate.AddDays(offset)
            };

            return(sut.IsValid(cmd));
        }
Beispiel #2
0
        public void WhenTransferDateIsFuture_ThenValidationFails()
        {
            var sut = new DateNotPastValidatorV2(new FakeDateTimeService());
            var cmd = new MakeTransfer {
                Date = presentDate.AddDays(-1)
            };

            Assert.AreEqual(false, sut.IsValid(cmd));
        }