public void AdvancedAlarm_TurnedOff_TurnsOffAlarm()
        {
            var sut = new AdvancedAlarm(_events, _sound);

            sut.Trigger(new XY());

            sut.TurnOff();

            Assert.IsTrue(_sound.Stopped);
        }
        public void AdvancedAlarm_WhenTurnedOff_CanAlertSecurityAgain()
        {
            var sut = new AdvancedAlarm(_events, _sound);
            var timesSecurityCalled = 0;

            _events.Subscribe <PositionedAlertSecurityEvent>(e => timesSecurityCalled++);
            sut.Trigger(new XY());

            sut.TurnOff();
            sut.Trigger(new XY());

            Assert.AreEqual(2, timesSecurityCalled);
        }