public void Stop() { if (_slideAdvancer != null) { _slideAdvancer.Dispose(); _slideAdvancer = null; } _machine.ShowOptions(); }
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; }
public void ShowingOptions_Should_SendPropertyChangeNotifications() { _testSubject.CurrentPageType = typeof(object); _testSubject.MonitorEvents(); _testSubject.ShowOptions(); _testSubject.ShouldRaisePropertyChangeFor(m => m.CurrentPageType); _testSubject.CurrentPageType.Should() .Be(typeof(PresentationOptionsPage)); }