public void CreateWorkerSupervisor_CreatesAWorkerSupervisorWithGivenParameters()
        {
            var manager = new WorkerManager(_sharedContext, WorkerCount);
            var context = new WorkerContext(_sharedContext, 1);

            var worker = manager.CreateWorkerSupervisor(context);

            Assert.NotNull(worker);
        }
Beispiel #2
0
        private void StartServer()
        {
            var storage = JobStorage.Current;

            _manager = new WorkerManager(_storage, _context, _workerCount);

            var components = storage.GetComponents();
            foreach (var component in components)
            {
                _components.Add(new ThreadWrapper(component));
            }
        }