Beispiel #1
0
 public CompanyFacade(
     Designer designer,
     WebDeveloper webDeveloper,
     MobileDeveloper mobileDeveloper)
 {
     this._designer        = designer;
     this._mobileDeveloper = mobileDeveloper;
     this._webDeveloper    = webDeveloper;
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            var mobileDeveloper = new MobileDeveloper();
            var webDeveloper    = new  WebDeveloper();
            var designer        = new Designer();
            var company         = new CompanyFacade(designer, webDeveloper, mobileDeveloper);
            var client          = new Client(company);

            client.BuyWebsite();
            client.BuyAndroidApp();
            client.BuyIPhoneApp();
        }