示例#1
0
        public void LessThan85YearsAgo_NotPassed()
        {
            var target = new DriverLicenseDateRangeRule(DateTime.Now.AddYears(-90).ToString("dd.MM.yyyy"));
            var result = target.Passed();

            Assert.IsFalse(result);
        }
示例#2
0
        public void GreaterThan85YearsAgoAndLessThanToday_Passed()
        {
            var target = new DriverLicenseDateRangeRule(DateTime.Now.AddYears(-1).ToString("dd.MM.yyyy"));
            var result = target.Passed();

            Assert.IsTrue(result);
        }
示例#3
0
        public void GreatedThanToday_NotPassed()
        {
            var target = new DriverLicenseDateRangeRule(DateTime.Now.AddDays(1).ToString("dd.MM.yyyy"));
            var result = target.Passed();

            Assert.IsFalse(result);
        }