public void UpdateValue(BeerProviderQuantity beerProviderQuantity)
 {
     Value = beerProviderQuantity.Value;
 }
Exemplo n.º 2
0
 public BeerProvider(BeerProviderQuantity beerProviderQuantity, Beer beer, Provider provider) : this()
 {
     BeerProviderQuantity = beerProviderQuantity ?? throw new ArgumentNullException($"{nameof(BeerProviderQuantity)} cannot be null");
     Beer = beer ?? throw new ArgumentNullException($"{nameof(Beer)} cannot be null");
     Provider = provider ?? throw new ArgumentNullException($"{nameof(Provider)} cannot be null");
 }