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); }); }
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); }); }
public TasksListTests() { _sut = new TasksList(Setup.Configuration(c => { c.MethodToExecute(m => m.Name == "Execute"); })); _context = Setup.Context(); _context.RequestedTask = "Build"; AddClean(); AddBuild(); AddDummy(); }