예제 #1
0
            public void ReturnTrueIfEligibleAndIsSeniorAdmission()
            {
                _PersonModel.Age = 65;
                TicketMediator TicketMediator = new TicketMediator(_PersonModel, _TicketModel);

                Assert.IsTrue(TicketMediator.IsEligibleToAttend());
                Assert.IsTrue(TicketMediator.GetTicketPrice() == _TicketModel.SeniorAdmission);
            }
예제 #2
0
            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);
            }