Façade Pattern Code Review

Use the Façade Pattern

Code Review

Code Walkthrough

The Program class creates an instance of the Façade class (object) and invokes the IsEligible() method.

class Program { static void Main(string[] args) { String customerID = "ABN000726351";
Facade systemFacade = new Facade();
Boolean eligible = systemFacade.IsEligible(customerID, 120000);
Console.WriteLine(String.Format("\n{0} has been {1}.", customerID, (eligible ? "Approved" : "Rejected")));
Console.Read(); } }