Ejemplo n.º 1
0
        public void Test_LearningToSki()
        {
            IPayment iPayment = new LearningToSki();
            bool     res      = iPayment.PackingSlip();

            Assert.AreEqual(res, true);
        }
Ejemplo n.º 2
0
        public static IPayment GetPayment(PaymentTypeEnum paymentType)
        {
            IPayment payment = null;

            switch (paymentType)
            {
            case PaymentTypeEnum.Physical:
                payment = new Physical();
                break;

            case PaymentTypeEnum.Book:
                payment = new Book();
                break;

            case PaymentTypeEnum.Membership:
                payment = new Membership();
                break;

            case PaymentTypeEnum.Upgrade:
                payment = new Upgrade();
                break;

            case PaymentTypeEnum.LearningToSki:
                payment = new LearningToSki();
                break;
            }
            return(payment);
        }
Ejemplo n.º 3
0
        public static void ProcessLearningToSki()
        {
            LearningToSki processLearningToSki = new LearningToSki();

            Console.WriteLine(processLearningToSki.AddFreeFirstAidVideo(true));
        }