Ejemplo n.º 1
0
 public bool Equals(Wholesaler other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id == other.Id);
 }
Ejemplo n.º 2
0
 public Stock SetWholesaler(Wholesaler wholesaler)
 {
     Wholesaler = wholesaler ?? throw new ArgumentNullException(nameof(wholesaler));
     return(this);
 }
Ejemplo n.º 3
0
 public Stock(int quantity, Beer beer, Wholesaler wholesaler)
 {
     SetQuantity(quantity);
     SetBeer(beer);
     SetWholesaler(wholesaler);
 }