public void SetUp() { theSchedule = new JobSchedule(); theRule = new StubbedScheduleRule(); theRule.ScheduledTimes[now] = next; theExecutor = new StubJobExecutor(); theJob = new ScheduledJob <AJob>(theRule); theLastRun = new JobExecutionRecord(); theSchedule.Find(theJob.JobType) .LastExecution = theLastRun; theJob.As <IScheduledJob>().Initialize(now, theExecutor, theSchedule); }