C# Class VendingMachine.Domain.VendingMachine

Exibir arquivo Open project: posaunehm/Codersation Class Usage Examples

Public Methods

Method Description
AddDrink ( IEnumerable drink ) : void
AddStock ( IEnumerable moneys ) : void
AddStock ( IEnumerable setMoneyInfos ) : void
BuyDrink ( string drinkName ) : Drink
CanBuy ( string drinkName ) : bool
InsertMoney ( Money money ) : void
PayBack ( ) : IEnumerable
SetDrinkSpecification ( IEnumerable specs ) : void
VendingMachine ( ) : System.Collections.Generic
VendingMachine ( IMoneyAcceptor acceptor ) : System.Collections.Generic

Private Methods

Method Description
CanBuyDrinkNamed ( string drinkName ) : bool

Method Details

AddDrink() public method

public AddDrink ( IEnumerable drink ) : void
drink IEnumerable
return void

AddStock() public method

public AddStock ( IEnumerable moneys ) : void
moneys IEnumerable
return void

AddStock() public method

public AddStock ( IEnumerable setMoneyInfos ) : void
setMoneyInfos IEnumerable
return void

BuyDrink() public method

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

CanBuy() public method

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

InsertMoney() public method

public InsertMoney ( Money money ) : void
money Money
return void

PayBack() public method

public PayBack ( ) : IEnumerable
return IEnumerable

SetDrinkSpecification() public method

public SetDrinkSpecification ( IEnumerable specs ) : void
specs IEnumerable
return void

VendingMachine() public method

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

VendingMachine() public method

public VendingMachine ( IMoneyAcceptor acceptor ) : System.Collections.Generic
acceptor IMoneyAcceptor
return System.Collections.Generic