public BankAccountFactory CreatDepositAccount(Client.Client client, DepositAccountInformation depositAccountInformation) { var id = Guid.NewGuid().ToString(); InformAccountIdToClient(client, id); Accounts.Add( id, new DepositAccount(client, NotValidateSum, depositAccountInformation) ); return(this); }
public DepositAccount(Client.Client client, int bankLimitAmount, DepositAccountInformation information) : base(client, bankLimitAmount, information.Balance) { _depositEndDate = information.DepositEndDate; PercentOnAccount = FindingPercent(); //AddPercents(); }