public WashTunnel(
     IMotherboard motherboard,
     IWashStepNotifier notifier)
 {
     _motherboard = motherboard;
     _state       = new FreeState(this, notifier);
 }
Esempio n. 2
0
        /// <summary>
        /// Subscribe to receive 'Mobile app notifications' on wash steps being applied to your registered <see cref="IVehicle"/>.
        /// </summary>
        public static IContainer AddMobileAppNotifications(this IContainer container, string username)
        {
            IWashStepNotifier notifier = container.GetService <IWashStepNotifier>();

            notifier.Subscribe(new MobileAppClient(username));

            return(container);
        }
Esempio n. 3
0
        /// <summary>
        /// Subscribe to receive 'SMS notifications' on wash steps being applied to your registered <see cref="IVehicle"/>.
        /// </summary>
        public static IContainer AddSmsNotifications(this IContainer container, string phoneNumber)
        {
            IWashStepNotifier notifier = container.GetService <IWashStepNotifier>();

            notifier.Subscribe(new SmsClient(phoneNumber));

            return(container);
        }