Esempio n. 1
0
        static void Main()
        {
            Mortgage mortgage = new Mortgage();

            Customer customer = new Customer("Arthur");
            bool eligible = mortgage.IsEligible(customer, 96);

            Console.WriteLine("\n" + customer.Name +
                " has been deemed " + (eligible ? "worthy" : "not worthy"));

            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main()
        {
            Mortgage mortgage = new Mortgage();


            Customer customer = new Customer("Ann McKinsey");
            bool     eligible = mortgage.IsEligible(customer, 125000);

            Console.WriteLine("\n" + customer.Name +
                              " has been " + (eligible ? "Approved" : "Rejected"));


            Console.ReadKey();
        }
Esempio n. 3
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Facade
            Mortgage mortgage = new Mortgage();

            // Evaluate mortgage eligibility for customer
            Customer customer = new Customer("Ann McKinsey");
            bool     eligible = mortgage.IsEligible(customer, 125000);

            Console.WriteLine("\n" + customer.Name +
                              " has been " + (eligible ? "Approved" : "Rejected"));

            // Wait for user
            Console.ReadKey();
        }
Esempio n. 4
0
        static void Main()
        {
            // Fasada
            Mortgage mortgage = new Mortgage();

            // Računanje hipoteke za kupca
            Customer customer = new Customer("Ann McKinsey");
            bool     eligable = mortgage.IsEligible(customer, 125000);

            Console.WriteLine("\n" + customer.Name +
                              " has been " + (eligable ? "Approved" : "Rejected"));

            // Čekanje na korisnički unos
            Console.Read();
        }
Esempio n. 5
0
        static void Main()

        {
            // Facade

            Mortgage mortgage = new Mortgage();

            //Evaluo si es factible una hipoteca para un cliente

            Customer customer = new Customer("Ann McKinsey");

            bool eligible = mortgage.IsEligible(customer, 125000);

            Console.WriteLine("\n" + customer.Name + " has been " + (eligible ? "Approved" : "Rejected"));

            Console.ReadKey();
        }
Esempio n. 6
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Facade
            Mortgage mortgage = new Mortgage();

            // Evaluate mortgage eligibility for customer
            Customer customer = new Customer("Ann McKinsey");
            bool eligible = mortgage.IsEligible(customer, 125000);

            Console.WriteLine("\n" + customer.Name +
                " has been " + (eligible ? "Approved" : "Rejected"));

            // Wait for user
            Console.ReadKey();
        }