Ejemplo n.º 1
0
        public static IDictionary <string, IShop> CreatePredefinedShops()
        {
            IDictionary <string, IShop> shops = new Dictionary <string, IShop>();
            Mall   mall   = new Mall();
            Bazaar bazaar = new Bazaar(mall);
            Store  store  = new Store(bazaar);

            shops.Add(mall.GetType().Name, mall);
            shops.Add(bazaar.GetType().Name, bazaar);
            shops.Add(store.GetType().Name, store);

            return(shops);
        }