public void TestLatePay_Negative()
        {
            NightOutController controller = new NightOutController();
            int result = controller.CalculateLatePay(DateTime.Today + new TimeSpan(22, 0, 0));

            Assert.IsTrue(result == 0);
        }
        public void TestAsleepPay_Zero()
        {
            NightOutController controller = new NightOutController();
            int result = controller.CalculateAsleepPay(DateTime.Today + new TimeSpan(24, 0, 0));

            Assert.IsTrue(result == 0);
        }
        public void NightOutIndex()
        {
            NightOutController controller = new NightOutController();
            ViewResult         result     = controller.Index(GetFormCollection()) as ViewResult;

            Assert.IsNotNull(result);
        }
        public void TestAwakePay_Positive()
        {
            NightOutController controller = new NightOutController();
            int result = controller.CalculateAwakePay(DateTime.Today + new TimeSpan(17, 0, 0), DateTime.Today + new TimeSpan(22, 0, 0));

            Assert.IsTrue(result == 60);
        }
        public void TestBedTime_After_EndTime()
        {
            NightOutController controller = new NightOutController();

            var result = controller.CreateResultModel(GetFormCollection());

            Assert.IsTrue(result.AwakePay == 24);
            Assert.IsTrue(result.AsleepPay == 0);
            Assert.IsTrue(result.LatePay == 0);
        }