C# 클래스 VendingMachine.Domain.MoneyStocker

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

공개 메소드들

메소드 설명
AddStock ( Money money ) : void
CanReturnJustMoneyIfUsed ( int amount ) : bool
Insert ( Money money ) : void
MoneyStocker ( ) : System.Collections.Generic
MoneyStocker ( IMoneyAcceptor acceptor ) : System.Collections.Generic
PayBack ( ) : IEnumerable
TakeMoney ( int usedAmount ) : void

비공개 메소드들

메소드 설명
EnumurateMoneyUpTo ( int amount ) : IEnumerable

메소드 상세

AddStock() 공개 메소드

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

CanReturnJustMoneyIfUsed() 공개 메소드

public CanReturnJustMoneyIfUsed ( int amount ) : bool
amount int
리턴 bool

Insert() 공개 메소드

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

MoneyStocker() 공개 메소드

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

MoneyStocker() 공개 메소드

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

PayBack() 공개 메소드

public PayBack ( ) : IEnumerable
리턴 IEnumerable

TakeMoney() 공개 메소드

public TakeMoney ( int usedAmount ) : void
usedAmount int
리턴 void