Exemplo n.º 1
0
        private IPatient GetLenny()
        {
            var patient = new Patient(s_Lenny);
            patient.AddFear(DayOfWeek.Monday, number => number % 3 == 0);
            patient.AddFear(DayOfWeek.Tuesday, number => number > 10);
            patient.AddFear(DayOfWeek.Wednesday, number => number == 22);
            patient.AddFear(DayOfWeek.Thursday, number => number == 0);
            patient.AddFear(DayOfWeek.Friday, number => number <= 10);
            patient.AddFear(DayOfWeek.Saturday, number => number == 56);
            patient.AddFear(DayOfWeek.Sunday, number => number == 666 || number == -666);

            return patient;
        }
Exemplo n.º 2
0
        private IPatient GetKarl()
        {
            var patient = new Patient(s_Karl);
            patient.AddFear(DayOfWeek.Monday, number => number == 12);
            patient.AddFear(DayOfWeek.Tuesday, number => number > 95);
            patient.AddFear(DayOfWeek.Wednesday, number => number == 34);
            patient.AddFear(DayOfWeek.Thursday, number => number == 0);
            patient.AddFear(DayOfWeek.Friday, number => number % 2 == 0);
            patient.AddFear(DayOfWeek.Saturday, number => number == 56);
            patient.AddFear(DayOfWeek.Sunday, number => number == 666 || number == -666);

            return patient;
        }