Ejemplo n.º 1
0
        public RadioSet(RadioDevice radioDevice, SoundMuter soundMuter)
        {
            _radioDevice = radioDevice;
            _soundMuter = soundMuter;

            _radioDevice.TurnOn();
        }
Ejemplo n.º 2
0
        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);
        }