示例#1
0
        public DayEqualityChecker()
        {
            Implementation = new ValueEqualityPartialImplementation();

            Implementation.Max = 31;
            Implementation.Min = 1;

            Implementation.Value = DateTime.Now.Day;

            Implementation.ValueName = this.Name;
        }
示例#2
0
        public MinuteEqualityChecker()
        {
            Implementation = new ValueEqualityPartialImplementation();

            Implementation.Min = 0;
            Implementation.Max = 59;

            Implementation.Value = DateTime.Now.Minute;

            Implementation.ValueName = this.Name;
        }
示例#3
0
        public HourEqualityChecker()
        {
            Implementation = new ValueEqualityPartialImplementation();

            Implementation.Min = 0;
            Implementation.Max = 23;

            Implementation.Value = DateTime.Now.Hour;

            Implementation.ValueName = this.Name;
        }
示例#4
0
        public YearEqualityChecker()
        {
            Implementation = new ValueEqualityPartialImplementation();

            Implementation.Max = 9999;
            Implementation.Min = 1800;

            Implementation.Value = DateTime.Now.Year;

            Implementation.ValueName = this.Name;
        }
示例#5
0
        public MonthEqualityChecker()
        {
            Implementation = new ValueEqualityPartialImplementation();

            Implementation.Min = 1;
            Implementation.Max = 12;

            Implementation.Value = DateTime.Now.Month;

            Implementation.ValueName = this.Name;
        }