Ejemplo n.º 1
0
        public void Should_OneTimeTicket_HasCorrectData()
        {
            // ARRANGE

            //ACT
            GymTicket result = new OneTimeGymTicket(nameof(OneTimeGymTicket), DateTime.Now, new NoDiscount());

            //ASSERT
            Check.That(result.GetPrice()).IsEqualTo(1500);
        }
Ejemplo n.º 2
0
        public void Should_StudentOneTimeGymTicket_HasCorrectData()
        {
            // ARRANGE

            //ACT
            GymTicket result = new OneTimeGymTicket(nameof(OneTimeGymTicket), DateTime.Now, new StudentDiscount());

            //ASSERT
            GymTicket refTicket = new OneTimeGymTicket(nameof(OneTimeGymTicket), DateTime.Now, new NoDiscount());

            Check.That(result.GetPrice()).IsEqualTo(refTicket.GetPrice() * 0.8);
        }