C# Class EventSourcing.Sample.MoneyTransferSample.BankAccountService

Inheritance: IBankAccountService
显示文件 Open project: tangxuehua/eventsourcing

Public Methods

Method Description
BankAccountService ( IContextManager contextManager, ITransferMoneyService transferMoneyService ) : System
CreateBankAccount ( string customer, string accountNumber ) : BankAccount
DepositMoney ( System.Guid bankAccountId, double amount ) : void
TransferMoney ( System.Guid sourceBankAccountId, System.Guid targetBankAccountId, double amount ) : void
WithdrawMoney ( System.Guid bankAccountId, double amount ) : void

Method Details

BankAccountService() public method

public BankAccountService ( IContextManager contextManager, ITransferMoneyService transferMoneyService ) : System
contextManager IContextManager
transferMoneyService ITransferMoneyService
return System

CreateBankAccount() public method

public CreateBankAccount ( string customer, string accountNumber ) : BankAccount
customer string
accountNumber string
return BankAccount

DepositMoney() public method

public DepositMoney ( System.Guid bankAccountId, double amount ) : void
bankAccountId System.Guid
amount double
return void

TransferMoney() public method

public TransferMoney ( System.Guid sourceBankAccountId, System.Guid targetBankAccountId, double amount ) : void
sourceBankAccountId System.Guid
targetBankAccountId System.Guid
amount double
return void

WithdrawMoney() public method

public WithdrawMoney ( System.Guid bankAccountId, double amount ) : void
bankAccountId System.Guid
amount double
return void