public void SetUp() { executor = Stub<IExecutor>(); runData = new RunData(); ender = Stub<IThreadEnder>(); target = new ExecutorThreadImpl(executor, runData); }
public void SetUp() { executor = Stub <IExecutor>(); runData = new RunData(); ender = Stub <IThreadEnder>(); target = new ExecutorThreadImpl(executor, runData); }
public void Launch(IThreadEnder ender) { task = new Task((o) => executor.Run(o as RunData), (object)runData); task.ContinueWith((t) => ender.OnEnded(this)); task.Start(); }
public void Launch(IThreadEnder ender) { task = new Task((o) => executor.Run(o as RunData), (object)runData); task.ContinueWith((t) => ender.OnEnded(this)); task.Start(); }