private void PowerButton_Click(object sender, RoutedEventArgs e) { _radio.ToggelPower(); RefreshUI(); if (_radio.IsOn) { ChangePlayingStation(_radio.GetStation(_currentChannelID).URL); } else { StopPlaying(); } }
public void TurnOnTest() { _radio.ToggelPower(); Assert.That(_radio.IsOn, Is.True); }
public void TurnOffTest() { _radio.ToggelPower(); Assert.That(_radio.IsOn, Is.False); }