Ejemplo n.º 1
0
        private bool WorkerDoWork(WorkerTypes workerType, StoryTypes storyType)
        {
            var foundWork = false;
            var worker    = _workers.GetIdleWorker(workerType);
            var work      = _board.FindNextWork(storyType);

            if (worker != null && work != null)
            {
                worker.Select();
                work.Select();
                foundWork = true;
            }
            return(foundWork);
        }