Esempio n. 1
0
        public BankAccountFactory CreatCreditAccount(Client.Client client, CreditAccountInformation creditAccountInformation)
        {
            var id = Guid.NewGuid().ToString();

            InformAccountIdToClient(client, id);
            Accounts.Add(
                id,
                new CreditAccount(client, NotValidateSum, creditAccountInformation)
                );
            return(this);
        }
Esempio n. 2
0
 public CreditAccount(Client.Client client, int bankLimitAmount, CreditAccountInformation information) : base(client, bankLimitAmount, information.Balance)
 {
     OverdraftLimit = information.OverdraftLimit;
     _commission    = information.Commission;
     //RemoveCommission();
 }