C# 클래스 EventSourcing.Sample.MoneyTransferSample.BankAccountService

상속: IBankAccountService
파일 보기 프로젝트 열기: tangxuehua/eventsourcing

공개 메소드들

메소드 설명
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

메소드 상세

BankAccountService() 공개 메소드

public BankAccountService ( IContextManager contextManager, ITransferMoneyService transferMoneyService ) : System
contextManager IContextManager
transferMoneyService ITransferMoneyService
리턴 System

CreateBankAccount() 공개 메소드

public CreateBankAccount ( string customer, string accountNumber ) : BankAccount
customer string
accountNumber string
리턴 BankAccount

DepositMoney() 공개 메소드

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

TransferMoney() 공개 메소드

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

WithdrawMoney() 공개 메소드

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