public void ShouldRemoveEscalationForTouchedIncidents()
        {
            //Prepare
            IncidentData i = new IncidentData
            {
                LastActivityTime = DateTime.Now.AddSeconds(-30),
                IsEscalated      = true
            };
            var ctl = new FirstUnitTestDemo();

            //Test
            ctl.EscalateIncidentIfRequired(i);

            //Assert
            Assert.IsFalse(i.IsEscalated, "Incident that was updated should not be escalated");
        }
        public void ShouldEscalateAnUntouchedIncident()
        {
            //Prepare
            IncidentData i = new IncidentData
            {
                LastActivityTime = DateTime.Now.AddDays(-4),
                IsEscalated      = false
            };
            var ctl = new FirstUnitTestDemo();

            //Test
            ctl.EscalateIncidentIfRequired(i);

            //Assert
            Assert.IsTrue(i.IsEscalated, "Old incidents should be escalated");
        }