C# Class VendingMachine.Domain.DrinkStocker

Show file Open project: posaunehm/Codersation Class Usage Examples

Public Methods

Method Description
AddDrinks ( IEnumerable drinks ) : void
DrinkStocker ( ) : System.Collections.Generic
HasItem ( string drinkName ) : bool
Take ( string drinkName ) : Drink

Private Methods

Method Description
ThrowExceptionIfItemNotFound ( string drinkName ) : void

Method Details

AddDrinks() public method

public AddDrinks ( IEnumerable drinks ) : void
drinks IEnumerable
return void

DrinkStocker() public method

public DrinkStocker ( ) : System.Collections.Generic
return System.Collections.Generic

HasItem() public method

public HasItem ( string drinkName ) : bool
drinkName string
return bool

Take() public method

public Take ( string drinkName ) : Drink
drinkName string
return Drink