예제 #1
0
 public void Stop()
 {
     if (_slideAdvancer != null)
     {
         _slideAdvancer.Dispose();
         _slideAdvancer = null;
     }
     _machine.ShowOptions();
 }
예제 #2
0
 private _MachineBrains([NotNull] KaraokeMachine machine, [NotNull] Func <Task <_SlideLibrary> > slideLoader,
                        [NotNull] Clock clock)
 {
     _machine     = machine;
     _slideLoader = slideLoader;
     _clock       = clock;
     _machine.ShowOptions();
     _machine.SlideAdvanceSpeed = 10;
     _slideLibrary = null;
 }
예제 #3
0
        public void ShowingOptions_Should_SendPropertyChangeNotifications()
        {
            _testSubject.CurrentPageType = typeof(object);
            _testSubject.MonitorEvents();

            _testSubject.ShowOptions();

            _testSubject.ShouldRaisePropertyChangeFor(m => m.CurrentPageType);
            _testSubject.CurrentPageType.Should()
            .Be(typeof(PresentationOptionsPage));
        }