Example #1
0
        /// <summary>
        /// Create an instance of the remote control.
        /// </summary>
        /// <param name="dogDoor">The DogDoor that this Remote will control.</param>
        public Remote(DogDoor dogDoor)
        {
            if (dogDoor is null)
            {
                throw new ArgumentNullException(nameof(dogDoor));
            }

            this.dogDoor = dogDoor;
        }
Example #2
0
        public BarkRecognizer(DogDoor dogDoor)
        {
            if (dogDoor is null)
            {
                throw new ArgumentNullException(nameof(dogDoor));
            }

            this.dogDoor = dogDoor;
        }