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(); }
/// <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(); }
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(); }
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(); }