Ejemplo n.º 1
0
        public void Approval()

        {
            var barclayCard = new Applicant("Alan", "Faulkner", DateTime.Parse("25/10/1986"), 34000);

            Assert.AreEqual("BarclayCard", barclayCard.ApproveApplication().ApplicableCreditCard.CreditCardName);

            var vanquishCard = new Applicant("Alan", "Faulkner", DateTime.Parse("25/10/1986"), 18000);

            Assert.AreEqual("Vanquish", vanquishCard.ApproveApplication().ApplicableCreditCard.CreditCardName);

            var none = new Applicant("Alan", "Faulkner", DateTime.Parse("25/10/2012"), 34000);

            Assert.AreEqual("None", none.ApproveApplication().ApplicableCreditCard.CreditCardName);
        }