public void Setup()
 {
     _stopwatch   = MockRepository.GenerateStub <IStopwatch>();
     _soundPlayer = MockRepository.GenerateStub <IKombatSoundPlayer>();
     _session     = MockRepository.GenerateStub <ISession>();
     _target      = new CodingDojo(_stopwatch, _soundPlayer, _session);
 }
Exemple #2
0
        public CodingDojo(IStopwatch stopwatch, IKombatSoundPlayer soundPlayer, ISession session)
        {
            _stopwatch   = stopwatch;
            _soundPlayer = soundPlayer;
            _session     = session;

            CycleTimes = new List <TimeSpan>();
        }
        public CodingDojo(IStopwatch stopwatch, IKombatSoundPlayer soundPlayer, ISession session)
        {
            _stopwatch = stopwatch;
            _soundPlayer = soundPlayer;
            _session = session;

            CycleTimes = new List<TimeSpan>();
        }
 public void Setup()
 {
     _stopwatch = MockRepository.GenerateStub<IStopwatch>();
     _soundPlayer = MockRepository.GenerateStub<IKombatSoundPlayer>();
     _session = MockRepository.GenerateStub<ISession>();
     _target = new CodingDojo(_stopwatch, _soundPlayer, _session);
 }