예제 #1
0
        public UserAccount CreateUserAccount(string name, IRate rate, PayServiceManager serviceManager)
        {
            var user = new UserAccount(name, rate, this, serviceManager);

            UsersAccounts.Add(user);
            return(user);
        }
예제 #2
0
 public UserAccount(string name, IRate currentRate, AtsManager manager, PayServiceManager serviceManager)
 {
     Name             = name;
     CurrentRate      = currentRate;
     Terminals        = new List <Terminal>();
     RegistrationTime = DateTime.Now;
     ChangeRateTime   = RegistrationTime;
     FreeMinutes      = currentRate.FreeMinutes;
     ServiceManager   = serviceManager;
     Manager          = manager;
     Balance          = 1;
 }