public void addAdultOvernightIncrementsAdultOvernightCountTwiceReturnsTwo() { var registration = new GateKeeper.Logic.Registration(); registration.AddAdultOvernight(); registration.AddAdultOvernight(); Assert.AreEqual(2, registration.AdultOvernightCount); }
public void SubtractAdultOvernightRemovesAdultOverNightPriceToCostOfSingleOvernight() { var registration = new GateKeeper.Logic.Registration(); registration.AddAdultOvernight(); registration.AddAdultOvernight(); registration.SubtractAdultOvernight(); Assert.AreEqual(50, registration.AdultOvernightTotalPrice); }
public void AddTwoAdultOvernightOneChildOvernightAndOneUnder6Equals110() { var registration = new GateKeeper.Logic.Registration(); registration.AddAdultOvernight(); registration.AddAdultOvernight(); registration.AddChildOvernight(); registration.AddUnder6Overnight(); registration.FindTotalPrice(); Assert.AreEqual(110, registration.TotalPrice); }
public void SubtractAdultOvernightdeccrimentsAdultOvernightCount() { var registration = new GateKeeper.Logic.Registration(); registration.AddAdultOvernight(); registration.SubtractAdultOvernight(); Assert.AreEqual(0, registration.AdultOvernightCount); }