Ejemplo n.º 1
0
 protected bool IsDueWithin(Days days)
 {
     return(_shelfLife < days);
 }
Ejemplo n.º 2
0
 protected Item(string name, Days shelfLife, Quality quality)
 {
     _name      = name;
     _quality   = quality;
     _shelfLife = shelfLife;
 }
Ejemplo n.º 3
0
 protected void ReduceShelfLife()
 {
     _shelfLife = _shelfLife.ReduceByOneDay();
 }
Ejemplo n.º 4
0
 public bool Equals(Days other)
 {
     return(_value == other._value);
 }