Automated teller machine emulation.
using System.Collections.Generic;
namespace SergeyDrozdovATM.BLL
{
public interface IATMService
{
IEnumerable<Currency> GetCurrenciesList();
void CreateAccount(int userId, int currencyId);
Account GetAccountById(int accountId);
IEnumerable<Account> GetAccountsList(int userId);
CurrencyRate GetCurrencyRate(Account sourceAccount, Account destinationAccount);
void Deposit(Account account, decimal cashAmount);
void Withdraw(Account account, decimal cashAmount);
bool ValidateAccountBalance(Account account, decimal cashAmount);
void ConvertCurrency(Account sourceAccount, Account destinationAccount, decimal cashAmount);
}
}