Ejemplo n.º 1
0
 public UserProfileController(IQuizService quizService, IUserActivityService userActivityService,
                              ModelConverter modelConverter)
 {
     _quizService         = quizService;
     _userActivityService = userActivityService;
     _modelConverter      = modelConverter;
 }
Ejemplo n.º 2
0
 public ServiceManager(
     IBusinessService business,
     IRoleService role,
     IUserService user,
     IAccountTypeService accountType,
     IGroupService group,
     IAccountService account,
     IClientService client,
     IRelationshipService relationship,
     IUserActivityService userActivity,
     IMenuService menuService,
     IReportService reportService,
     ITransactionCodeService transactionCode,
     ITransactionTypeService transactionType,
     ITransactionService transaction)
 {
     this.Business        = business;
     this.Role            = role;
     this.User            = user;
     this.AccountType     = accountType;
     this.Group           = group;
     this.Account         = account;
     this.Client          = client;
     this.Relationship    = relationship;
     this.UserActivity    = userActivity;
     this.Menu            = menuService;
     this.Report          = reportService;
     this.TransactionCode = transactionCode;
     this.TransactionType = transactionType;
     this.Transaction     = transaction;
 }
Ejemplo n.º 3
0
 public UserActivityController(IDomainManagerService domainManagerService,
                               IUserActivityService userActivityService,
                               IUserActivityQueryService userActivityQueryService) : base(domainManagerService)
 {
     _userActivityService      = userActivityService;
     _userActivityQueryService = userActivityQueryService;
 }
Ejemplo n.º 4
0
 public CommentController(IArticleCommentService articlecommentService, IUserActivityService userActivityService,
                          IUserService userService)
 {
     _articlecommentService = articlecommentService;
     _userActivityService   = userActivityService;
     _userService           = userService;
 }
 public SendMessageController(UserManager <ApplicationUser> userManager, IUserActivityService userActivities, IUserService users, IMessageService messages)
 {
     this.userManager    = userManager;
     this.users          = users;
     this.messages       = messages;
     this.userActivities = userActivities;
 }
Ejemplo n.º 6
0
 public ImageController(IImageService imageService, DatabaseContext context,
                        IUserActivityService userActivityService)
 {
     _imageService        = imageService;
     _context             = context;
     _userActivityService = userActivityService;
 }
Ejemplo n.º 7
0
 public UserService(IRepository <User, string> userRepository, IUserActivityService userActivityService, IHttpContextAccessor httpContextAccessor)
 {
     _userRepository      = userRepository;
     _userActivityService = userActivityService;
     _httpContextAccessor = httpContextAccessor;
     _currentUser         = _httpContextAccessor.HttpContext?.User?.Identity?.Name;
 }
Ejemplo n.º 8
0
 public RateServiceImpl(IMapper mapper, AppDb db, IAuthService userService, IUserActivityService userActivityService)
 {
     _mapper              = mapper;
     _db                  = db;
     _userService         = userService;
     _userActivityService = userActivityService;
 }
Ejemplo n.º 9
0
 public new void SetUp()
 {
     _activityType1 = new ActivityLogType
     {
         Id            = 1,
         SystemKeyword = "TestKeyword1",
         Enabled       = true,
         Name          = "Test name1"
     };
     _activityType2 = new ActivityLogType
     {
         Id            = 2,
         SystemKeyword = "TestKeyword2",
         Enabled       = true,
         Name          = "Test name2"
     };
     _user1 = new User
     {
         Id       = 1,
         Email    = "*****@*****.**",
         Username = "******",
         Deleted  = false,
     };
     _user2 = new User
     {
         Id       = 2,
         Email    = "*****@*****.**",
         Username = "******",
         Deleted  = false,
     };
     _activity1 = new ActivityLog
     {
         Id = 1,
         ActivityLogType = _activityType1,
         UserId          = _user1.Id,
         User            = _user1
     };
     _activity2 = new ActivityLog
     {
         Id = 2,
         ActivityLogType = _activityType2,
         UserId          = _user2.Id,
         User            = _user2
     };
     _cacheManager              = new NullCache();
     _workContext               = new Mock <IWorkContext>();
     _webHelper                 = new Mock <IWebHelper>();
     _activityLogRepository     = new Mock <IRepository <ActivityLog> >();
     _activityLogTypeRepository = new Mock <IRepository <ActivityLogType> >();
     _activityLogTypeRepository.Setup(x => x.Table)
     .Returns(new List <ActivityLogType> {
         _activityType1, _activityType2
     }.AsQueryable());
     _activityLogRepository.Setup(x => x.Table)
     .Returns(new List <ActivityLog> {
         _activity1, _activity2
     }.AsQueryable());
     _userActivityService = new UserActivityService(_activityLogRepository.Object,
                                                    _activityLogTypeRepository.Object, null, _cacheManager, _webHelper.Object, _workContext.Object);
 }
Ejemplo n.º 10
0
 public UserController(DatabaseContext context, IAuthService authService,
                       IUserActivityService userActivityService)
 {
     _authService         = authService;
     _userActivityService = userActivityService;
     _databaseContext     = context;
 }
Ejemplo n.º 11
0
 public SettingController(IAddressService addressService,
                          IUserActivityService userActivityService,
                          IUserService userService,
                          IEncryptionService encryptionService,
                          IFulltextService fulltextService,
                          IGenericAttributeService genericAttributeService,
                          ILocalizedEntityService localizedEntityService,
                          ILocalizationService localizationService,
                          IMaintenanceService maintenanceService,
                          IPermissionService permissionService,
                          IPictureService pictureService,
                          ISettingModelFactory settingModelFactory,
                          ISettingService settingService,
                          IWorkContext workContext,
                          NopConfig config)
 {
     this._addressService          = addressService;
     this._userActivityService     = userActivityService;
     this._userService             = userService;
     this._encryptionService       = encryptionService;
     this._fulltextService         = fulltextService;
     this._genericAttributeService = genericAttributeService;
     this._localizedEntityService  = localizedEntityService;
     this._localizationService     = localizationService;
     this._maintenanceService      = maintenanceService;
     this._permissionService       = permissionService;
     this._pictureService          = pictureService;
     this._settingModelFactory     = settingModelFactory;
     this._settingService          = settingService;
     this._workContext             = workContext;
     this._config = config;
 }
Ejemplo n.º 12
0
 public PluginController(ExternalAuthenticationSettings externalAuthenticationSettings,
                         IUserActivityService userActivityService,
                         IEventPublisher eventPublisher,
                         IExternalAuthenticationService externalAuthenticationService,
                         ILocalizationService localizationService,
                         IPermissionService permissionService,
                         IPluginFinder pluginFinder,
                         IPluginModelFactory pluginModelFactory,
                         ISettingService settingService,
                         IUploadService uploadService,
                         IWebHelper webHelper,
                         IWidgetService widgetService,
                         WidgetSettings widgetSettings)
 {
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._userActivityService            = userActivityService;
     this._eventPublisher = eventPublisher;
     this._externalAuthenticationService = externalAuthenticationService;
     this._localizationService           = localizationService;
     this._permissionService             = permissionService;
     this._pluginFinder       = pluginFinder;
     this._pluginModelFactory = pluginModelFactory;
     this._settingService     = settingService;
     this._uploadService      = uploadService;
     this._webHelper          = webHelper;
     this._widgetService      = widgetService;
     this._widgetSettings     = widgetSettings;
 }
Ejemplo n.º 13
0
 public UserController(AddressSettings addressSettings,
                       CaptchaSettings captchaSettings,
                       UserSettings userSettings,
                       DateTimeSettings dateTimeSettings,
                       IDownloadService downloadService,
                       IAddressAttributeParser addressAttributeParser,
                       IAddressModelFactory addressModelFactory,
                       IAddressService addressService,
                       IAuthenticationService authenticationService,
                       ICountryService countryService,
                       IUserActivityService userActivityService,
                       IUserAttributeParser userAttributeParser,
                       IUserAttributeService userAttributeService,
                       IUserModelFactory userModelFactory,
                       IUserRegistrationService userRegistrationService,
                       IUserService userService,
                       IEventPublisher eventPublisher,
                       IExportManager exportManager,
                       IExternalAuthenticationService externalAuthenticationService,
                       IGenericAttributeService genericAttributeService,
                       ILocalizationService localizationService,
                       INewsLetterSubscriptionService newsLetterSubscriptionService,
                       IPictureService pictureService,
                       IWebHelper webHelper,
                       IWorkContext workContext,
                       IWorkflowMessageService workflowMessageService,
                       LocalizationSettings localizationSettings,
                       MediaSettings mediaSettings,
                       SiteInformationSettings siteInformationSettings)
 {
     this._addressSettings               = addressSettings;
     this._captchaSettings               = captchaSettings;
     this._userSettings                  = userSettings;
     this._dateTimeSettings              = dateTimeSettings;
     this._downloadService               = downloadService;
     this._addressAttributeParser        = addressAttributeParser;
     this._addressModelFactory           = addressModelFactory;
     this._addressService                = addressService;
     this._authenticationService         = authenticationService;
     this._countryService                = countryService;
     this._userActivityService           = userActivityService;
     this._userAttributeParser           = userAttributeParser;
     this._userAttributeService          = userAttributeService;
     this._userModelFactory              = userModelFactory;
     this._userRegistrationService       = userRegistrationService;
     this._userService                   = userService;
     this._eventPublisher                = eventPublisher;
     this._exportManager                 = exportManager;
     this._externalAuthenticationService = externalAuthenticationService;
     this._genericAttributeService       = genericAttributeService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._webHelper               = webHelper;
     this._workContext             = workContext;
     this._workflowMessageService  = workflowMessageService;
     this._localizationSettings    = localizationSettings;
     this._mediaSettings           = mediaSettings;
     this._siteInformationSettings = siteInformationSettings;
 }
Ejemplo n.º 14
0
 public AccountController(
     UserSettings userSettings,
     DateTimeSettings dateTimeSettings,
     MediaSettings mediaSettings,
     IAuthenticationService authenticationService,
     IUserAccountModelFactory userAccountModelFactory,
     IUserRegistrationService userRegistrationService,
     IUserService userService,
     IUserActivityService userActivityService,
     IGenericAttributeService genericAttributeService,
     INotificationService notificationService,
     IWorkContext workContext,
     ITenantContext tenantContext,
     IEmailSender emailSender,
     IPictureService pictureService)
 {
     _userSettings            = userSettings;
     _dateTimeSettings        = dateTimeSettings;
     _mediaSettings           = mediaSettings;
     _authenticationService   = authenticationService;
     _userAccountModelFactory = userAccountModelFactory;
     _userRegistrationService = userRegistrationService;
     _userService             = userService;
     _userActivityService     = userActivityService;
     _genericAttributeService = genericAttributeService;
     _notificationService     = notificationService;
     _workContext             = workContext;
     _tenantContext           = tenantContext;
     _emailSender             = emailSender;
     _pictureService          = pictureService;
 }
 public UserController(IRepository <User> userRepository,
                       IRepository <SecurityGroup> securityGroupRepository,
                       IAuthenticationService authenticationService,
                       IUserService userService,
                       IUserRegistrationService userRegistrationService,
                       IUserActivityService userActivityService,
                       ILanguageService languageService,
                       ILocalizationService localizationService,
                       UserSettings userSettings,
                       IWorkContext workContext,
                       HttpContextBase httpContext,
                       IDbContext dbContext)
 {
     this._userRepository          = userRepository;
     this._securityGroupRepository = securityGroupRepository;
     this._authenticationService   = authenticationService;
     this._userService             = userService;
     this._userRegistrationService = userRegistrationService;
     this._userActivityService     = userActivityService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._userSettings            = userSettings;
     this._workContext             = workContext;
     this._httpContext             = httpContext;
     this._dbContext = dbContext;
 }
 public CommonController(CaptchaSettings captchaSettings,
                         CommonSettings commonSettings,
                         ICommonModelFactory commonModelFactory,
                         IUserActivityService userActivityService,
                         IGenericAttributeService genericAttributeService,
                         ILanguageService languageService,
                         ILocalizationService localizationService,
                         ILogger logger,
                         IThemeContext themeContext,
                         IWorkContext workContext,
                         IWorkflowMessageService workflowMessageService,
                         LocalizationSettings localizationSettings,
                         SiteInformationSettings siteInformationSettings)
 {
     this._captchaSettings         = captchaSettings;
     this._commonSettings          = commonSettings;
     this._commonModelFactory      = commonModelFactory;
     this._userActivityService     = userActivityService;
     this._genericAttributeService = genericAttributeService;
     this._languageService         = languageService;
     this._localizationService     = localizationService;
     this._logger                  = logger;
     this._themeContext            = themeContext;
     this._workContext             = workContext;
     this._workflowMessageService  = workflowMessageService;
     this._localizationSettings    = localizationSettings;
     this._siteInformationSettings = siteInformationSettings;
 }
Ejemplo n.º 17
0
 public UserModelFactory(
     UserSettings userSettings,
     MediaSettings mediaSettings,
     IUserService userService,
     IUserActivityService userActivityService,
     IBaseModelFactory baseModelFactory,
     IGenericAttributeService genericAttributeService,
     IStoreService storeService,
     IPictureService pictureService,
     IAppliedStoreSupportedModelFactory appliedStoreSupportedModelFactory,
     IAclSupportedModelFactory aclSupportedModelFactory,
     IDateTimeHelper dateTimeHelper)
 {
     _userSettings                      = userSettings;
     _mediaSettings                     = mediaSettings;
     _userService                       = userService;
     _userActivityService               = userActivityService;
     _baseModelFactory                  = baseModelFactory;
     _genericAttributeService           = genericAttributeService;
     _storeService                      = storeService;
     _pictureService                    = pictureService;
     _appliedStoreSupportedModelFactory = appliedStoreSupportedModelFactory;
     _aclSupportedModelFactory          = aclSupportedModelFactory;
     _dateTimeHelper                    = dateTimeHelper;
 }
Ejemplo n.º 18
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
                           IOpenAuthenticationService openAuthenticationService,
                           IGenericAttributeService genericAttributeService,
                           IUserRegistrationService UserRegistrationService,
                           IUserActivityService UserActivityService,
                           ILocalizationService localizationService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           UserSettings UserSettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           //IShoppingCartService shoppingCartService,
                           IWorkflowMessageService workflowMessageService,
                           IEventPublisher eventPublisher,
                           LocalizationSettings localizationSettings)
 {
     this._authenticationService     = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService   = genericAttributeService;
     this._UserRegistrationService   = UserRegistrationService;
     this._UserActivityService       = UserActivityService;
     this._localizationService       = localizationService;
     this._workContext  = workContext;
     this._storeContext = storeContext;
     this._UserSettings = UserSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     //this._shoppingCartService = shoppingCartService;
     this._workflowMessageService = workflowMessageService;
     this._eventPublisher         = eventPublisher;
     this._localizationSettings   = localizationSettings;
 }
Ejemplo n.º 19
0
 public UserController(
     UserSettings userSettings,
     DateTimeSettings dateTimeSettings,
     IUserService userService,
     IUserRegistrationService userRegistrationService,
     IUserModelFactory userModelFactory,
     IGenericAttributeService genericAttributeService,
     IPermissionService permissionService,
     INotificationService notificationService,
     IUserActivityService userActivityService,
     IStoreService storeService,
     IWorkContext workContext)
 {
     _userSettings            = userSettings;
     _dateTimeSettings        = dateTimeSettings;
     _userService             = userService;
     _userRegistrationService = userRegistrationService;
     _userModelFactory        = userModelFactory;
     _genericAttributeService = genericAttributeService;
     _permissionService       = permissionService;
     _notificationService     = notificationService;
     _userActivityService     = userActivityService;
     _storeService            = storeService;
     _workContext             = workContext;
 }
Ejemplo n.º 20
0
 public ChatHub(ILogger <ChatHub> logger,
                IInternalConnectedUsersService connectedUsersService,
                IUserActivityService userActivityService)
 {
     _logger = logger;
     _connectedUsersService = connectedUsersService;
     _userActivityService   = userActivityService;
 }
 public ActivityLogController(IActivityLogModelFactory activityLogModelFactory,
                              IUserActivityService userActivityService,
                              IPermissionService permissionService)
 {
     this._activityLogModelFactory = activityLogModelFactory;
     this._userActivityService     = userActivityService;
     this._permissionService       = permissionService;
 }
Ejemplo n.º 22
0
 public ActivityLogModelFactory(IBaseAdminModelFactory baseAdminModelFactory,
                                IUserActivityService userActivityService,
                                IDateTimeHelper dateTimeHelper)
 {
     this._baseAdminModelFactory = baseAdminModelFactory;
     this._userActivityService   = userActivityService;
     this._dateTimeHelper        = dateTimeHelper;
 }
Ejemplo n.º 23
0
 public InfoController(IWorkContext workContext, IWebHelper webHelper, 
     IUserActivityService activityService, IPermissionService permissionService)
 {
     this.workContext         = workContext;
     this.webHelper           = webHelper;
     this.activityService     = activityService;
     this.permissionService   = permissionService;
 }
 public ProfileController(IPostService products, IUserService users, IMessageService messages, IOrderService orders, IUserActivityService userActivities, UserManager <ApplicationUser> userManager)
 {
     this.products       = products;
     this.users          = users;
     this.messages       = messages;
     this.orders         = orders;
     this.userManager    = userManager;
     this.userActivities = userActivities;
 }
Ejemplo n.º 25
0
 public ActivityLogModelFactory(
     IBaseModelFactory baseModelFactory,
     IUserActivityService userActivityService,
     IDateTimeHelper dateTimeHelper)
 {
     _baseModelFactory    = baseModelFactory;
     _userActivityService = userActivityService;
     _dateTimeHelper      = dateTimeHelper;
 }
 public UserActivityBackfiller(
     IProcessSessionStore processSessionStore = null,
     IUserActivityStore userActivityStore     = null,
     IUserActivityService userActivityService = null)
 {
     _processSessionStore = processSessionStore ?? new ProcessSessionStore();
     _userActivityStore   = userActivityStore ?? new UserActivityStore();
     _userActivityService = userActivityService ?? new UserActivityService();
 }
Ejemplo n.º 27
0
 public ActivityLogController(IUserActivityService userActivityService,
                              IDateTimeHelper dateTimeHelper, ILocalizationService localizationService,
                              IPermissionService permissionService)
 {
     this._userActivityService = userActivityService;
     this._dateTimeHelper      = dateTimeHelper;
     this._localizationService = localizationService;
     this._permissionService   = permissionService;
 }
Ejemplo n.º 28
0
 public HomeController(IUserService userService, IScheduleService scheduleService, ISlotService slotService, ITaskService taskService, IColumnService columnService, IUserActivityService userActivityService)
 {
     _userService         = userService;
     _scheduleService     = scheduleService;
     _slotService         = slotService;
     _taskService         = taskService;
     _columnService       = columnService;
     _userActivityService = userActivityService;
 }
Ejemplo n.º 29
0
 public BaseGenericController(
     IGenericApiService <T, E> genericApiService,
     IJsonFieldsSerializer jsonFieldsSerializer,
     IUserActivityService userActivityService)
 {
     JsonFieldsSerializer = jsonFieldsSerializer;
     UserActivityService  = userActivityService;
     GenericApiService    = genericApiService;
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="eventPublisher">Event published</param>
 public CompanyService(ICacheManager cacheManager,
     IRepository<Company> companyRepository, IUserActivityService userActivityService,
     IRepository<GenericAttribute> attributeRepository, 
     IEventPublisher eventPublisher)
 {
     this.cacheManager             = cacheManager;
     this.companyRepository        = companyRepository;
     this.eventPublisher           = eventPublisher;
     this.userActivityService      = userActivityService;
 }
 public ScheduleTaskController(IUserActivityService userActivityService,
                               IPermissionService permissionService,
                               IScheduleTaskModelFactory scheduleTaskModelFactory,
                               IScheduleTaskService scheduleTaskService)
 {
     this._userActivityService      = userActivityService;
     this._permissionService        = permissionService;
     this._scheduleTaskModelFactory = scheduleTaskModelFactory;
     this._scheduleTaskService      = scheduleTaskService;
 }
Ejemplo n.º 32
0
 public ActiveQuizController(IQuizService quizService, IQuizResultService quizResultService,
                             IUserActivityService userActivityService,
                             ModelConverter modelConverter, ViewModelConverter viewModelConverter)
 {
     _quizService         = quizService;
     _quizResultService   = quizResultService;
     _userActivityService = userActivityService;
     _modelConverter      = modelConverter;
     _viewModelConverter  = viewModelConverter;
 }
Ejemplo n.º 33
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="eventPublisher">Event published</param>
 public BranchOfficeService(ICacheManager cacheManager,
     IRepository<BranchOffice> dataRepository, IUserActivityService userActivityService,
     IRepository<GenericAttribute> attributeRepository,IRepository<ActivityLog> auditLogRepository,
     IEventPublisher eventPublisher)
 {
     this.cacheManager            = cacheManager;
     this.dataRepository          = dataRepository;
     this.eventPublisher          = eventPublisher;
     this.auditLogRepository      = auditLogRepository;
     this.userActivityService     = userActivityService;
 }
Ejemplo n.º 34
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="eventPublisher">Event published</param>
 public ClientService(ICacheManager cacheManager,
     IRepository<Client> clientRepository, IUserActivityService userActivityService,
     IRepository<GenericAttribute> attributeRepository,IRepository<ActivityLog> auditLogRepository,
     IEventPublisher eventPublisher)
 {
     this.cacheManager            = cacheManager;
     this.clientRepository        = clientRepository;
     this.eventPublisher          = eventPublisher;
     this.auditLogRepository      = auditLogRepository;
     this.userActivityService     = userActivityService;
 }
Ejemplo n.º 35
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="UserService">User service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 public UserRegistrationService(IUserService userService, IUserActivityService userActivityService,
     IEncryptionService encryptionService, IGenericAttributeService attributeService,
     ILocalizationService localizationService, IWebHelper webHelper)
 {
     this.userService         = userService;
     this.attributeService    = attributeService;
     this.userActivityService = userActivityService;
     this.encryptionService   = encryptionService;
     this.webHelper           = webHelper;
     this.localizationService = localizationService;
 }
Ejemplo n.º 36
0
 public AuditHistoryController(IWorkContext workContext, ILocalizationService localizationService,
     IDateTimeHelper dateTimeHelper, IUserActivityService activityService,
     IUserService userService, IWebHelper webHelper, ICacheManager cacheManager)
 {
     this.workContext         = workContext;
     this.localizationService = localizationService;
     this.webHelper           = webHelper;
     this.userService         = userService;
     this.dateTimeHelper      = dateTimeHelper;
     this.cacheManager        = cacheManager;
     this.activityService     = activityService;
 }
        public MvcLogActionFilterAttribute(string description)
        {
            _logService = DependencyResolver.Current
                .GetService<IUserActivityService>();
            _coockieParser = DependencyResolver.Current
                .GetService<ICookieParser>();
            _descriptionGetter = DependencyResolver.Current
                .GetService<IDefaultUserActivityDescription>();
            _userActivityLoggingState = DependencyResolver.Current
                .GetService<IUserActivityLoggingState>();

            _desctiption = description;
        }
Ejemplo n.º 38
0
 public ClientController(IClientService clientService, ILocalizationService localizationService,
     ICountryService countryService, IStateProvinceService stateprovinceService, 
     IBranchOfficeService officeService, IGenericAttributeService attributeService, IUserActivityService userActivityService,
     IEncryptionService encryptionService, IWorkContext workContext, ICacheManager cacheManager )
 {
     this.clientService        = clientService;
     this.localizationService  = localizationService;
     this.officeService        = officeService;
     this.userActivityService  = userActivityService;
     this.encryptionService    = encryptionService;
     this.cacheManager         = cacheManager;
     this.countryService       = countryService;
     this.stateprovinceService = stateprovinceService;
     this.workContext          = workContext;
     this.attributeService     = attributeService;
 }
Ejemplo n.º 39
0
 public UserController(IUserService userService, ILocalizationService localizationService,
     IEncryptionService encryptionService, IUserRegistrationService registrationService,
     IWorkflowMessageService messageService, IGenericAttributeService attributeService,
     IWorkContext workContext, ICacheManager cacheManager, 
     IUserActivityService userActivityService, IBranchOfficeService officeService)
 {
     this.localizationService  = localizationService;
     this.cacheManager         = cacheManager;
     this.userActivityService  = userActivityService;
     this.encryptionService    = encryptionService;
     this.officeService        = officeService;
     this.registrationService  = registrationService;
     this.attributeService     = attributeService;
     this.messageService       = messageService;
     this.userService          = userService;
     this.workContext          = workContext;
 }
Ejemplo n.º 40
0
        public CommonController(
            ILanguageService languageService,
            ILocalizationService localizationService,
            IWorkContext workContext, 
            IQueuedEmailService queuedEmailService, 
            IEmailAccountService emailAccountService,
            ISitemapGenerator sitemapGenerator,
            IGenericAttributeService genericAttributeService, 
            IWebHelper webHelper,
            IPermissionService permissionService,
            ICacheManager cacheManager,
            IUserActivityService userActivityService,
            UserSettings userSettings, 
            SiteInformationSettings siteInformationSettings,
            EmailAccountSettings emailAccountSettings,
            CommonSettings commonSettings, 
            LocalizationSettings localizationSettings, 
            CaptchaSettings captchaSettings)
        {
            this._languageService = languageService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._queuedEmailService = queuedEmailService;
            this._emailAccountService = emailAccountService;
            this._sitemapGenerator = sitemapGenerator;
            this._genericAttributeService = genericAttributeService;
            this._webHelper = webHelper;
            this._permissionService = permissionService;
            this._cacheManager = cacheManager;
            this._userActivityService = userActivityService;

            this._userSettings = userSettings;
            this._siteInformationSettings = siteInformationSettings;
            this._emailAccountSettings = emailAccountSettings;
            this._commonSettings = commonSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
        }
Ejemplo n.º 41
0
        public AccountController(
           IWorkContext workContext,
           ICompanyContext companyContext,
           IWebHelper webHelper,
           
           IAuthenticationService authenticationService,
           IUserRegistrationService userRegistrationService,
           ILocalizationService localizationService,
           IDateTimeHelper dateTimeHelper,

           IUserService userService,
           IUserActivityService userActivityService,

           IBusinessPartnerService bpService,

           UserSettings userSettings,
           LocalizationSettings localizationSettings,
           CaptchaSettings captchaSettings,
           DateTimeSettings dateTimeSettings)
        {
            this._workContext = workContext;
            this._companyContext = companyContext;
            this._webHelper = webHelper;

            this._authenticationService = authenticationService;
            this._userRegistrationService = userRegistrationService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;

            this._userService = userService;
            this._userActivityService = userActivityService;
            this._bpService = bpService;

            this._userSettings = userSettings;
            this._dateTimeSettings = dateTimeSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
        }
Ejemplo n.º 42
0
 public UserActivityController(IUserActivityService userActivityService, IUserProfileService userProfileService)
 {
     _userActivityService = userActivityService;
     _userProfileService = userProfileService;
 }
Ejemplo n.º 43
0
        public override void SetUp()
        {
            base.SetUp();

            var securityContext = new Mock<ISecurityContext>();
            securityContext.Setup(x => x.CurrentUser).Returns(() => ContextUser);
            _container.Register(securityContext.Object);

            _permissionService = _container.Resolve<IPermissionService>();
            _userService = _container.Resolve<IUserService>();
            _userActivityService = _container.Resolve<IUserActivityService>();
        }
 public UserActivityController(IUserActivityService service,
     IUserActivityMapper mapper)
 {
     _service = service;
     _mapper = mapper;
 }