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