Ejemplo n.º 1
0
 public void SetUp()
 {
     task = MockRepository.GenerateMock<IWantToBeRun>();
     sleeper = MockRepository.GenerateMock<ISleeper>();
     stopper = MockRepository.GenerateMock<IStopper>();
     timer = new Timer(task, sleeper,stopper);
 }
Ejemplo n.º 2
0
 public Timer(IWantToBeRun task, ISleeper sleeper,IStopper stopper)
 {
     _task = task;
     _sleeper = sleeper;
     _stopper = stopper;
 }