AddCompletedTask() public method

public AddCompletedTask ( Task task ) : void
task Task
return void
 public void Setup()
 {
     Bootstrapper.BootstrapTest();
     _field = ObjectMother.ValidField("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");
     _field.AddPendingTask(_task1);
     _field.AddPendingTask(_task2);
     _field.AddCompletedTask(_task3);
     _SUT = new FieldHasNoOutstandingTasks();
     _ruleResult = _SUT.Execute(_field);
 }