示例#1
0
        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);
        }
示例#2
0
 public DepositAccount(Client.Client client, int bankLimitAmount, DepositAccountInformation information) : base(client, bankLimitAmount, information.Balance)
 {
     _depositEndDate  = information.DepositEndDate;
     PercentOnAccount = FindingPercent();
     //AddPercents();
 }