Наследование: ISystemClock
 public void Setup()
 {
     Bootstrapper.BootstrapTest();
     _systemClock = SystemClock.For(DateTime.Parse("1/1/2020 8:00 AM"));
     _employee = ObjectMother.ValidEmployee("Raif").WithEntityId(1);
     _task1 = ObjectMother.ValidTask("task1").WithEntityId(1);
     _task1.ScheduledStartTime = DateTime.Parse("1/2/2020 8:00 AM");
     _task2 = ObjectMother.ValidTask("task1").WithEntityId(2);
     _task2.ScheduledStartTime = DateTime.Parse("1/3/2020 8:00 AM");
     _task3 = ObjectMother.ValidTask("task1").WithEntityId(3);
     _task3.ScheduledStartTime = DateTime.Parse("1/1/2010 8:00 AM");
     _employee.AddTask(_task1);
     _employee.AddTask(_task2);
     _employee.AddTask(_task3);
     _SUT = new EmployeeHasNoOutstandingTasks(_systemClock);
     _ruleResult = _SUT.Execute(_employee);
 }
 public void Setup()
 {
     Bootstrapper.BootstrapTest();
     _systemClock = SystemClock.For(DateTime.Parse("1/1/2020 8:00 AM"));
     _field = ObjectMother.ValidField("Raif").WithEntityId(1);
     _event1 = ObjectMother.ValidEvent("event1").WithEntityId(1);
     _event1.StartTime = DateTime.Parse("1/2/2020 8:00 AM");
     _event2 = ObjectMother.ValidEvent("event1").WithEntityId(2);
     _event2.StartTime = DateTime.Parse("1/3/2020 8:00 AM");
     _event3 = ObjectMother.ValidEvent("event1").WithEntityId(3);
     _event3.StartTime = DateTime.Parse("1/1/2010 8:00 AM");
     _field.AddEvent(_event1);
     _field.AddEvent(_event2);
     _field.AddEvent(_event3);
     _SUT = new FieldHasNoOutstandingEvents(_systemClock);
     _ruleResult = _SUT.Execute(_field);
 }