Пример #1
0
        public RadioSet(RadioDevice radioDevice, SoundMuter soundMuter)
        {
            _radioDevice = radioDevice;
            _soundMuter = soundMuter;

            _radioDevice.TurnOn();
        }
Пример #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);
        }