public UserAccount CreateUserAccount(string name, IRate rate, PayServiceManager serviceManager) { var user = new UserAccount(name, rate, this, serviceManager); UsersAccounts.Add(user); return(user); }
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; }