C# Class VendingMachine.Domain.MoneyStocker

Show file Open project: posaunehm/Codersation Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
EnumurateMoneyUpTo ( int amount ) : IEnumerable

Method Details

AddStock() public method

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

CanReturnJustMoneyIfUsed() public method

public CanReturnJustMoneyIfUsed ( int amount ) : bool
amount int
return bool

Insert() public method

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

MoneyStocker() public method

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

MoneyStocker() public method

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

PayBack() public method

public PayBack ( ) : IEnumerable
return IEnumerable

TakeMoney() public method

public TakeMoney ( int usedAmount ) : void
usedAmount int
return void