static void Main(string[] args) { //facade Hipoteca hipoteca = new Hipoteca(); var ehElegivel = hipoteca.EhElegivel((new Cliente("Fabio Margarito")), 100); if (ehElegivel) Console.WriteLine("\nO Cliente pode receber o empréstimo"); Console.ReadKey(); }
static void Main(string[] args) { // Facade Hipoteca hipoteca = new Hipoteca(); // Evaluate mortgage eligibility for customer Cliente cliente = new Cliente("Ann McKinsey"); bool eligible = hipoteca.IsEligible(cliente, 125000); Console.WriteLine("\n" + cliente.Name + " Ha sido: " + (eligible ? "Aprobado" : "Rechazado")); // Wait for user Console.ReadKey(); }
/// <summary> /// Entry point into console application. /// </summary> static void Main() { // Facade var hipoteca = new Hipoteca(); // Evaluate mortgage eligibility for customer var cliente = new Cliente { Name = "Ana Gomez" }; bool eligible = hipoteca.IsEligible(cliente, 250000); Console.WriteLine("\n" + cliente.Name + " ha sido " + (eligible ? "Aprobado" : "Rechazado")); // Wait for user Console.ReadKey(); }