public bool SetVolume(int volume) { if (volume < 0) { return(false); } var success = _mockPlayerState.SetVolume((float)volume / 100); if (_mockPlayerState.GetMute()) { _mockPlayerState.SetMute(false); } return(success); }