Esempio n. 1
0
 public bool Equals(SupplyStatus other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.Id == other.Id);
 }
Esempio n. 2
0
 public SupplyStatus CreateOrGet(SupplyStatus supplyStatus)
 {
     if (supplyStatus == null)
     {
         throw new ArgumentNullException();
     }
     if (!_supplyStatuses.Contains(supplyStatus))
     {
         _supplyStatuses.Add(supplyStatus);
     }
     return(supplyStatus);
 }