コード例 #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();
        }
コード例 #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();
        }
コード例 #3
0
ファイル: facadeRW.cs プロジェクト: vid4n/ooproj
        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();
        }
コード例 #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();
        }
コード例 #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();
        }