public void EmailNotificationTest()
        {
            var Email = new FakeEmailNotifier();

            Email.TriggerNotification(BreachType.TOO_HIGH);
            Assert.True(Email.IsEmailTriggerNotificationCalled);
        }
        public void EmailCheckAndAlertTest()
        {
            var _notifierType = new FakeEmailNotifier();

            CheckAndAlert(_notifierType, new BatteryCharacter {
                brand = "ABC", coolingType = CoolingType.PASSIVE_COOLING
            }, 50);
            Assert.True(_notifierType.IsEmailTriggerNotificationCalled);
        }
        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);
        }