Esempio n. 1
0
 public Sandwhich(IBread topBread, IBread bottomBread, CondimentList topCondiments, CondimentList bottomCondiments, IngrediantList ingrediants)
 {
     _topBread         = topBread;
     _bottomBread      = bottomBread;
     _topCondiments    = topCondiments;
     _bottomCondiments = bottomCondiments;
     _ingrediants      = ingrediants;
 }
Esempio n. 2
0
 public SandWhich(IBread topBread, CondimentList topCondiments, IngredientList ingredients, CondimentList bottomCondiments, IBread bottomBread)
 {
     this._topBread         = topBread;
     this._topCondiments    = topCondiments;
     this._ingredients      = ingredients;
     this._bottomCondiments = bottomCondiments;
     this._bottomBread      = bottomBread;
 }
Esempio n. 3
0
 public Sandwich(IBread bread, IExpression topCondiments, IExpression ingredients,
                 IExpression bottomCondiments)
 {
     _bread            = bread;
     _topCondiments    = topCondiments;
     _ingredients      = ingredients;
     _bottomCondiments = bottomCondiments;
 }
Esempio n. 4
0
 public Sandwitch(IBread topbread, CondimentList topcondimentList, IngredientList ingredientList, CondimentList bottomcondimentList, IBread bottomBread)
 {
     this.topBread            = topbread;
     this.topcondimentList    = topcondimentList;
     this.ingredientList      = ingredientList;
     this.bottomcondimentList = bottomcondimentList;
     this.bottomBread         = bottomBread;
 }
Esempio n. 5
0
 public Sandwich(IBread topBread, CondimentList topCondiments, IngredientList ingredients, CondimentList bottomCondiments, IBread bottomBread)
 {
     _topBread = topBread;
     _topCondiments = topCondiments;
     _ingredients = ingredients;
     _bottomCondiments = bottomCondiments;
     _bottomBread = bottomBread;
 }
        static void Main(string[] args)
        {
            IBreadFactory factory = new LoafFactory();
            IBread        bread   = factory.CreateBread();

            bread.Slice();

            Console.ReadLine();
        }
Esempio n. 7
0
 public RestaurantFacade()
 {
     _PizzaProvider = new PizzaProvider();
     _BreadProvider = new BreadProvider();
 }
 public Sandwich(IBread bread, IMeat meat, IVeggie veggie)
 {
     _bread  = bread;
     _meat   = meat;
     _veggie = veggie;
 }
Esempio n. 9
0
 public Sandwich(IBread bread, IMeat meat, ICollection <ICondiment> condiments)
 {
     Bread      = bread;
     Meat       = meat;
     Condiments = condiments;
 }
Esempio n. 10
0
 public RestaurantFacade()
 {
     _pizzaprovider = new PizzaProvider();
     _breadprovider = new BreadProvider();
 }
Esempio n. 11
0
 public Restaurant()
 {
     _pizzaProvider = new PizzaProvider();
     _breadProvider = new BreadProvider();
 }