C# Class VendingMachine.Model.PurchaseContext

Mostrar archivo Open project: posaunehm/Codersation

Public Methods

Method Description
Eject ( ) : CreditPool
Purchase ( int inPosition ) : ItemInfo
ReceiveMoney ( Money inMoney, int inCount ) : void

Private Methods

Method Description
InitRoles ( IUserCoinMeckRole inCoinMeckRole, IUserPurchaseRole inPurchaseRole ) : void
PurchaseContext ( CreditPool inChanges, ItemRackPosition inItems ) : System

Method Details

Eject() public method

public Eject ( ) : CreditPool
return CreditPool

Purchase() public method

public Purchase ( int inPosition ) : ItemInfo
inPosition int
return ItemInfo

ReceiveMoney() public method

public ReceiveMoney ( Money inMoney, int inCount ) : void
inMoney Money
inCount int
return void