Example #1
0
 protected Decorator(BakeryComponent baseComponent)
 {
     this.BaseComponent = baseComponent;
 }
Example #2
0
 public ArtificialScentDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Artificial Scent";
     this.Price = 3.0;
 }
Example #3
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Name Card";
     this.Price = 4.0;
 }
Example #4
0
 public CreamDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cream";
     this.Price = 1.0;
 }
Example #5
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cherry";
     this.Price = 2.0;
 }