Exemplo n.º 1
0
 protected CookieDecorator(CookieComponent baseComponent)
 {
     _baseComponent = baseComponent;
 }
Exemplo n.º 2
0
 public static void PrintCookieInformation(CookieComponent cookie)
 {
     Console.WriteLine($"{cookie.GetName()}");
     Console.WriteLine($"Delicious Level: {cookie.GetDeliciousness()}");
 }
Exemplo n.º 3
0
 public OatmealDecorator(CookieComponent baseComponent)
     : base(baseComponent)
 {
     this.Name           = "Oatmeal";
     this.DeliciousIndex = -9999;
 }
Exemplo n.º 4
0
 public BaconDecorator(CookieComponent baseComponent)
     : base(baseComponent)
 {
     this.Name           = "Bacon";
     this.DeliciousIndex = 9999;
 }
Exemplo n.º 5
0
 public SugarDecorator(CookieComponent baseComponent)
     : base(baseComponent)
 {
     this.Name           = "Sugar";
     this.DeliciousIndex = 10;
 }