public RadioSet(RadioDevice radioDevice, SoundMuter soundMuter) { _radioDevice = radioDevice; _soundMuter = soundMuter; _radioDevice.TurnOn(); }
private RadioSet CreateRadio(string inputId, string outputId) { SoundMuter soundMuter = new SoundMuter(inputId, outputId); RadioFactory radioFactory = new RadioFactory(); RadioDevice radioDevice = radioFactory.Create(); return new RadioSet(radioDevice, soundMuter); }