public void Execute() { MortgageFacade mortage = new MortgageFacade(); Customer c = new Customer("Tomek"); mortage.IsEligible(c, 2000); }
public void Main() { var mortgage = new MortgageFacade(); var customer = new Customer("Ann McKinsey"); var eligible = mortgage.IsEligible(customer, 125000); Console.WriteLine($"\n{customer.Name} has been {(eligible ? "Approved" : "Rejected")}"); }
private static void Main() { var bank = new Bank(); var loan = new Loan(); var credit = new Credit(); MortgageFacade mortgage = new MortgageFacade(bank, loan, credit); bool eligible = mortgage.IsEligible("Customer Name", 125000); }
static void Main(string[] args) { MortgageFacade mortgage = new MortgageFacade(); // Evaluate mortgage eligibility for customer var cust = new Customer("Ann McKinsey"); bool eligable = mortgage.IsEligible(cust, 125000); //Display notification info Console.WriteLine($"\n{ cust.Name} has been {(eligable ? "Approved" : "Rejected")} for a mortgage."); Console.ReadKey(); }