C# Класс EventSourcing.Sample.MoneyTransferSample.BankAccountService

Наследование: IBankAccountService
Показать файл Открыть проект

Открытые методы

Метод Описание
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