Ejemplo n.º 1
0
        public void addAdultOvernightIncrementsAdultOvernightCountTwiceReturnsTwo()
        {
            var registration = new GateKeeper.Logic.Registration();

            registration.AddAdultOvernight();
            registration.AddAdultOvernight();
            Assert.AreEqual(2, registration.AdultOvernightCount);
        }
Ejemplo n.º 2
0
        public void SubtractAdultOvernightRemovesAdultOverNightPriceToCostOfSingleOvernight()
        {
            var registration = new GateKeeper.Logic.Registration();

            registration.AddAdultOvernight();
            registration.AddAdultOvernight();
            registration.SubtractAdultOvernight();
            Assert.AreEqual(50, registration.AdultOvernightTotalPrice);
        }
Ejemplo n.º 3
0
        public void AddTwoAdultOvernightOneChildOvernightAndOneUnder6Equals110()
        {
            var registration = new GateKeeper.Logic.Registration();

            registration.AddAdultOvernight();
            registration.AddAdultOvernight();
            registration.AddChildOvernight();
            registration.AddUnder6Overnight();
            registration.FindTotalPrice();
            Assert.AreEqual(110, registration.TotalPrice);
        }
Ejemplo n.º 4
0
        public void SubtractAdultOvernightdeccrimentsAdultOvernightCount()
        {
            var registration = new GateKeeper.Logic.Registration();

            registration.AddAdultOvernight();
            registration.SubtractAdultOvernight();
            Assert.AreEqual(0, registration.AdultOvernightCount);
        }