public void Should_Schedule_Request_for_Requested_Date()
 {
     var request = new JobRequest
         {IsEmergency = true, RequestedByDate = DateTime.Now.AddDays(1), RequestedTask = GetKnownTaskId()};
     var sut = new EmergencyJobScheduler(new FakeMessageSender());
     var result = sut.Schedule(request);
     result.ScheduledToStart.ShouldEqual(request.RequestedByDate);
 }
 public void Should_Send_Message_Including_Scheduled_Date()
 {
     var sender = new FakeMessageSender();
     var request = new JobRequest
         {IsEmergency = true, RequestedByDate = DateTime.Now.AddDays(1), RequestedTask = GetKnownTaskId()};
     var sut = new EmergencyJobScheduler(sender);
     sut.Schedule(request);
     var message = sender.SentMessage as EmergencyJobScheduled;
     message.ScheduledOn.ShouldEqual(request.RequestedByDate);
 }