public ClockViewModel(AppConfig appConfig, TunePlayer tunePlayer) { _appConfig = appConfig; _tunePlayer = tunePlayer; _counterClock = new CounterClock(UpdateDisplayTime, TimesUp); int totalUpdateMinutes = _appConfig.UpdateMinutes; _counterClock.SetUpdateMinutes(totalUpdateMinutes); }
public ControllerViewModel(AttendeesViewModel attendeesView, TunePlayer tunePlayer, ImageSticker imageSticker, ChuckApiService chuckApi) { _attendeesViewModel = attendeesView; AttendeesView = attendeesView; _tunePlayer = tunePlayer; _imageSticker = imageSticker; _chuckApi = chuckApi; _tunePlayer.MusicStatusChange += (s, e) => { _playButton.Content = _tunePlayer.IsPlaying ? "STOP MUSIC" : "PLAY MUSIC"; }; SelectedTriviaOption = "Movies"; SelectedTriviaLevel = "Hard"; }
public async Task TunePlayer_PlaySoundAsync_ShouldPlay() { await TunePlayer.PlaySoundAsync(); }
public void TunePlayer_PlaySound_ShouldPlay() { TunePlayer.PlaySound(); }