C# 클래스 VendingMachine.Domain.DrinkStocker

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

공개 메소드들

메소드 설명
AddDrinks ( IEnumerable drinks ) : void
DrinkStocker ( ) : System.Collections.Generic
HasItem ( string drinkName ) : bool
Take ( string drinkName ) : Drink

비공개 메소드들

메소드 설명
ThrowExceptionIfItemNotFound ( string drinkName ) : void

메소드 상세

AddDrinks() 공개 메소드

public AddDrinks ( IEnumerable drinks ) : void
drinks IEnumerable
리턴 void

DrinkStocker() 공개 메소드

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

HasItem() 공개 메소드

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

Take() 공개 메소드

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