예제 #1
0
 private void GetDefinedTasks()
 {
     _tasks = new TasksList(_configurator);
     _asm.GetTypes().Where(t => _configurator.IsTask(t)).ForEach(t =>
     {
         var cfg = _tasks.CreateConfiguration(t);
         _currentTaskConfigurator = cfg;
         cfg.Instance             = _container.Resolve(t);
     });
 }
예제 #2
0
 private void GetDefinedTasks()
 {
     _tasks = new TasksList(_configurator);
     _asm.GetTypes().Where(t=>_configurator.IsTask(t)).ForEach(t =>
     {
         var cfg=_tasks.CreateConfiguration(t);
         _currentTaskConfigurator = cfg;
         cfg.Instance = _container.Resolve(t);
     });
 }
예제 #3
0
 public TasksListTests()
 {
     _sut = new TasksList(Setup.Configuration(c =>
     {
         c.MethodToExecute(m => m.Name == "Execute");
     }));
     _context = Setup.Context();
     _context.RequestedTask = "Build";
     AddClean();
     AddBuild();
     AddDummy();
 }