public void ReturnTrueIfEligibleAndIsSeniorAdmission() { _PersonModel.Age = 65; TicketMediator TicketMediator = new TicketMediator(_PersonModel, _TicketModel); Assert.IsTrue(TicketMediator.IsEligibleToAttend()); Assert.IsTrue(TicketMediator.GetTicketPrice() == _TicketModel.SeniorAdmission); }
public void ReturnTrueIfEligibleAndIsChildAdmission() { _TicketModel.MinimumAge = 0; _PersonModel.Age = 6; TicketMediator TicketMediator = new TicketMediator(_PersonModel, _TicketModel); Assert.IsTrue(TicketMediator.IsEligibleToAttend()); Assert.IsTrue(TicketMediator.GetTicketPrice() == _TicketModel.ChildAdmission); }