public CustomerSegmentController(ICustomerSegmentService customerSegmentService,
                                         ICustomerSegmentSearchService customerSegmentSearchService,
                                         IMemberService memberService,
                                         IUserGroupEvaluator userGroupEvaluator,
                                         IMemberSearchService memberSearchService,
                                         ISettingsManager settingsManager)
        {
            _customerSegmentService       = customerSegmentService;
            _customerSegmentSearchService = customerSegmentSearchService;
            _memberService       = memberService;
            _memberSearchService = memberSearchService;
            _userGroupEvaluator  = userGroupEvaluator;

            _maxAllowedSegments = settingsManager.GetValue(ModuleConstants.Settings.General.MaxAllowedSegments.Name, 1000);
            _maxActiveSegments  = settingsManager.GetValue(ModuleConstants.Settings.General.MaxActiveSegments.Name, 20);
        }
 public UserGroupEvaluator(ICustomerSegmentSearchService customerSegmentSearchService)
 {
     _customerSegmentSearchService = customerSegmentSearchService;
 }