예제 #1
0
 public void FullValidation()
 {
     // Create component under Test
     using (var cfg = TestConfigurationProvider.Create(Properties.Resources.AllSchedulers))
         using (var cut = RecordingPlanner.Create(this))
             for (int i = 250; i-- > 0;)
             {
                 cut.DispatchNextActivity(m_planTime);
             }
 }
예제 #2
0
 public void ShowPlan()
 {
     // Create component under Test
     using (var cfg = TestConfigurationProvider.Create(Properties.Resources.AllSchedulers))
         using (var cut = RecordingPlanner.Create(this))
             foreach (var plan in cut.GetPlan(m_now).Take(250))
             {
                 Debug.WriteLine(string.Format
                                 (
                                     "{0:dd.MM.yyyy HH:mm}-{5:HH:mm}{1} on {2} [{3}] {4}",
                                     plan.Time.LocalStart,
                                     plan.StartsLate ? " [late]" : string.Empty,
                                     (plan.Resource == null) ? string.Format("[{0}]", string.Join(", ", plan.Definition.Resources.Select(r => r.Name))) : (object)plan.Resource,
                                     plan.Definition.UniqueIdentifier,
                                     plan.Definition.Name,
                                     plan.Time.LocalEnd
                                 ));
             }
 }