C# 클래스 VendingMachine.Domain.VendingMachine

파일 보기 프로젝트 열기: posaunehm/Codersation 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CanBuyDrinkNamed ( string drinkName ) : bool

메소드 상세

AddDrink() 공개 메소드

public AddDrink ( IEnumerable drink ) : void
drink IEnumerable
리턴 void

AddStock() 공개 메소드

public AddStock ( IEnumerable moneys ) : void
moneys IEnumerable
리턴 void

AddStock() 공개 메소드

public AddStock ( IEnumerable setMoneyInfos ) : void
setMoneyInfos IEnumerable
리턴 void

BuyDrink() 공개 메소드

public BuyDrink ( string drinkName ) : Drink
drinkName string
리턴 Drink

CanBuy() 공개 메소드

public CanBuy ( string drinkName ) : bool
drinkName string
리턴 bool

InsertMoney() 공개 메소드

public InsertMoney ( Money money ) : void
money Money
리턴 void

PayBack() 공개 메소드

public PayBack ( ) : IEnumerable
리턴 IEnumerable

SetDrinkSpecification() 공개 메소드

public SetDrinkSpecification ( IEnumerable specs ) : void
specs IEnumerable
리턴 void

VendingMachine() 공개 메소드

public VendingMachine ( ) : System.Collections.Generic
리턴 System.Collections.Generic

VendingMachine() 공개 메소드

public VendingMachine ( IMoneyAcceptor acceptor ) : System.Collections.Generic
acceptor IMoneyAcceptor
리턴 System.Collections.Generic