Exemplo 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();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
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();
        }