/// <summary> /// Добавление первого набора услуг и первой услуги в набор при быстрой регистрации версии /// </summary> /// <param name="client">Клиент</param> /// <param name="rate">Тариф</param> /// <param name="currentDateTime">Текущие дата и время</param> public virtual void CreateInitialStandardServiceSet(Client client, Rate rate, DateTime currentDateTime) { var configuration = new ServiceSetConfiguration(rate, 0, 0, 0, 0, 0); var serviceSet = new ServiceSet(configuration, 1, 0, 0, currentDateTime); client.AddServiceSet(serviceSet); serviceSet.Activate(currentDateTime); serviceSet.AddNewService(currentDateTime); }
/// <summary> /// Добавление первого набора услуг и первой услуги в набор /// </summary> /// <param name="client">Клиент</param> /// <param name="rate">Тариф</param> /// <param name="userCount">Максимальное кол-во пользователей на аккаунт</param> /// <param name="currentDateTime">Текущие дата и время</param> public virtual void CreateInitialServiceSet(Client client, Rate rate, short extraActiveUserCount, short extraTeamCount, short extraStorageCount, short extraAccountOrganizationCount, short extraGigabyteCount, DateTime currentDateTime) { var configuration = new ServiceSetConfiguration(rate, extraActiveUserCount, extraTeamCount, extraStorageCount, extraAccountOrganizationCount, extraGigabyteCount); var serviceSet = new ServiceSet(configuration, 1, 0, 0, currentDateTime); client.AddServiceSet(serviceSet); serviceSet.Activate(currentDateTime); serviceSet.AddNewService(currentDateTime); }
/// <summary> /// Удаление набора услуг /// </summary> public virtual void DeleteServiceSet(ServiceSet serviceSet) { serviceSets.Remove(serviceSet); serviceSet.DeletionDate = DateTime.Now; }
/// <summary> /// Добавление набора услуг /// </summary> public virtual void AddServiceSet(ServiceSet serviceSet) { serviceSets.Add(serviceSet); serviceSet.Client = this; }