C# Class EventSourcing.Sample.MoneyTransferSample.BankAccountService

Inheritance: IBankAccountService
Afficher le fichier Open project: tangxuehua/eventsourcing

Méthodes publiques

Méthode 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 méthode

public BankAccountService ( IContextManager contextManager, ITransferMoneyService transferMoneyService ) : System
contextManager IContextManager
transferMoneyService ITransferMoneyService
Résultat System

CreateBankAccount() public méthode

public CreateBankAccount ( string customer, string accountNumber ) : BankAccount
customer string
accountNumber string
Résultat BankAccount

DepositMoney() public méthode

public DepositMoney ( System.Guid bankAccountId, double amount ) : void
bankAccountId System.Guid
amount double
Résultat void

TransferMoney() public méthode

public TransferMoney ( System.Guid sourceBankAccountId, System.Guid targetBankAccountId, double amount ) : void
sourceBankAccountId System.Guid
targetBankAccountId System.Guid
amount double
Résultat void

WithdrawMoney() public méthode

public WithdrawMoney ( System.Guid bankAccountId, double amount ) : void
bankAccountId System.Guid
amount double
Résultat void