C# Class VendingMachine.Domain.VendingMachine

Afficher le fichier Open project: posaunehm/Codersation Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CanBuyDrinkNamed ( string drinkName ) : bool

Method Details

AddDrink() public méthode

public AddDrink ( IEnumerable drink ) : void
drink IEnumerable
Résultat void

AddStock() public méthode

public AddStock ( IEnumerable moneys ) : void
moneys IEnumerable
Résultat void

AddStock() public méthode

public AddStock ( IEnumerable setMoneyInfos ) : void
setMoneyInfos IEnumerable
Résultat void

BuyDrink() public méthode

public BuyDrink ( string drinkName ) : Drink
drinkName string
Résultat Drink

CanBuy() public méthode

public CanBuy ( string drinkName ) : bool
drinkName string
Résultat bool

InsertMoney() public méthode

public InsertMoney ( Money money ) : void
money Money
Résultat void

PayBack() public méthode

public PayBack ( ) : IEnumerable
Résultat IEnumerable

SetDrinkSpecification() public méthode

public SetDrinkSpecification ( IEnumerable specs ) : void
specs IEnumerable
Résultat void

VendingMachine() public méthode

public VendingMachine ( ) : System.Collections.Generic
Résultat System.Collections.Generic

VendingMachine() public méthode

public VendingMachine ( IMoneyAcceptor acceptor ) : System.Collections.Generic
acceptor IMoneyAcceptor
Résultat System.Collections.Generic