Exemplo n.º 1
0
 public bool Equals(Quality other)
 {
     return(_value == other._value);
 }
Exemplo n.º 2
0
 protected void Devaluate()
 {
     _quality = new Quality(0);
 }
Exemplo n.º 3
0
 protected void IncreaseQuality()
 {
     _quality = _quality.Increase();
 }
Exemplo n.º 4
0
 protected void DecreaseQuality()
 {
     _quality = _quality.Decrease();
 }
Exemplo n.º 5
0
 protected Item(string name, Days shelfLife, Quality quality)
 {
     _name      = name;
     _quality   = quality;
     _shelfLife = shelfLife;
 }