public void ConsoleNotificationTest()
        {
            var Console = new FakeConsoleNotifier();

            Console.TriggerNotification(BreachType.TOO_LOW);
            Assert.True(Console.IsConsoleTriggerNotificationCalled);
        }
        public void ConsoleCheckAndAlertTest()
        {
            var _notifierType = new FakeConsoleNotifier();

            CheckAndAlert(_notifierType, new BatteryCharacter {
                brand = "XYZ", coolingType = CoolingType.MED_ACTIVE_COOLING
            }, -5);
            Assert.True(_notifierType.IsConsoleTriggerNotificationCalled);
        }
        public void CompositeNotificationTest()
        {
            var _notifierType = new CompositeNotifier();
            FakeConsoleNotifier _consoleNotifier = new FakeConsoleNotifier();
            FakeEmailNotifier   _emailNotifier   = new FakeEmailNotifier();

            _notifierType.AddNotifierToList(_consoleNotifier);
            _notifierType.AddNotifierToList(_emailNotifier);
            _notifierType.TriggerNotification(BreachType.TOO_HIGH);
            Assert.True(_consoleNotifier.IsConsoleTriggerNotificationCalled);
            Assert.True(_emailNotifier.IsEmailTriggerNotificationCalled);
        }