Пример #1
0
 public ReportsController(IReportServices reportServices, IBlobServices blobServices, IUserServices userServices, IIndustryServices industryServices)
 {
     _reportServices   = reportServices;
     _blobServices     = blobServices;
     _userServices     = userServices;
     _industryServices = industryServices;
 }
        // BASE CTOR
        public GlobalController(
            IUserServices authUserServices,
            IRoleServices roleServices,
            IApplicationServices applicationServices,
            IIndustryServices industryServices,
            IRegionServices regionServices,
            IEventServices eventServices,
            IEventDirectorServices eventDirectorServices,
            ILogServices logServices,
            INotificationServices notificationServices,
            IUserServices userServices,
            IUserRoleServices userRoleServices)
        {
            UserServices        = authUserServices;
            RoleServices        = roleServices;
            ApplicationServices = applicationServices;
            IndustryServices    = industryServices;
            RegionServices      = regionServices;

            EventServices         = eventServices;         /*must be included in all constructors*/
            EventDirectorServices = eventDirectorServices; /*must be included in all constructors*/
            LogServices           = logServices;           /*must be included in all constructors*/
            NotificationServices  = notificationServices;  /*must be included in all constructors*/

            UserServices     = userServices;               /*must be included in all constructors*/
            UserRoleServices = userRoleServices;           /*must be included in all constructors*/

            EmailHelper = new EmailHelper();

            CreateEmailLogFunc = CreateEmailLog;
        }
        public void SetUp()
        {
            var unitOfWork = new UnitOfWork();

            // AUTH
            _authUserServices    = new UserServices(unitOfWork);
            _roleServices        = new RoleServices(unitOfWork);
            _applicationServices = new ApplicationServices(unitOfWork);
            _industryServices    = new IndustryServices(unitOfWork);
            _regionServices      = new RegionServices(unitOfWork);

            _countryServices                       = new CountryServices(unitOfWork);
            _editionServices                       = new EditionServices(unitOfWork);
            _editionCohostServices                 = new EditionCohostServices(unitOfWork);
            _editionCountryServices                = new EditionCountryServices(unitOfWork);
            _editionKeyVisitorServices             = new EditionKeyVisitorServices(unitOfWork);
            _editionTranslationServices            = new EditionTranslationServices(unitOfWork);
            _editionTranslationSocialMediaServices = new EditionTranslationSocialMediaServices(unitOfWork);
            _editionVisitorServices                = new EditionVisitorServices(unitOfWork);
            _eventServices         = new EventServices(unitOfWork);
            _eventDirectorServices = new EventDirectorServices(unitOfWork);
            _fileServices          = new FileServices(unitOfWork);
            _keyVisitorServices    = new KeyVisitorServices(unitOfWork);
            _logServices           = new LogServices(unitOfWork);
            _notificationServices  = new NotificationServices(unitOfWork);
            _subscriptionServices  = new SubscriptionServices(unitOfWork);
            _userServices          = new UserServices(unitOfWork);
            _userRoleServices      = new UserRoleServices(unitOfWork);

            _editionHelper = new EditionHelper();

            _controller = new EditionController(
                _authUserServices,
                _roleServices,
                _applicationServices,
                _industryServices,
                _regionServices,
                _countryServices,
                _editionServices,
                _editionCohostServices,
                _editionCountryServices,
                _editionKeyVisitorServices,
                _editionTranslationServices,
                _editionTranslationSocialMediaServices,
                _editionVisitorServices,
                _eventServices,
                _eventDirectorServices,
                _fileServices,
                _keyVisitorServices,
                _logServices,
                _notificationServices,
                _subscriptionServices,
                _userServices,
                _userRoleServices,
                _editionHelper
                );
            _controller.SetDefaultUser();

            AutoMapperConfig.Register();
        }
 public EventDirectorController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          eventServices, eventDirectorServices, logServices, notificationServices, userServices, userRoleServices)
 {
 }
 public GlobalController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEditionServices editionServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     this(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          eventServices, eventDirectorServices, logServices, notificationServices, userServices, userRoleServices)
 {
     EditionServices = editionServices;
 }
Пример #6
0
 public EmailNotificationController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEditionServices editionServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     IEmailNotificationHelper emailNotificationHelper,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          editionServices, eventServices, eventDirectorServices, logServices, notificationServices, userServices, userRoleServices)
 {
     _emailNotificationHelper = emailNotificationHelper;
 }
Пример #7
0
 public EditionDiscountApproverController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEditionServices editionServices,
     IEditionDiscountApproverServices editionDiscountApproverServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     ISubscriptionServices subscriptionServices,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          editionServices, editionDiscountApproverServices, eventServices, eventDirectorServices,
          logServices, notificationServices, subscriptionServices, userServices, userRoleServices)
 {
 }
        public NotificationController(
            IUserServices authUserServices,
            IRoleServices roleServices,
            IApplicationServices applicationServices,
            IIndustryServices industryServices,
            IRegionServices regionServices,
            IEventServices eventServices,
            IEventDirectorServices eventDirectorServices,
            ILogServices logServices,
            INotificationServices notificationServices,
            IUserServices userServices,
            IUserRoleServices userRoleServices,
            IInAppNotificationHelper inAppNotificationHelper) :
            base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
                 eventServices, eventDirectorServices, logServices, notificationServices, userServices, userRoleServices)
        {
            _inAppNotificationHelper = inAppNotificationHelper;

            ViewEngineResultFunc = RenderView;
        }
 public EditionSocialMediaController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEditionServices editionServices,
     IEditionTranslationSocialMediaServices editionTranslationSocialMediaServices,
     IEditionTranslationServices editionTranslationServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     ISocialMediaServices socialMediaServices,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          editionServices, editionTranslationSocialMediaServices, editionTranslationServices, eventServices, eventDirectorServices,
          logServices, notificationServices, socialMediaServices, userServices, userRoleServices)
 {
 }
 public DashboardController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEditionServices editionServices,
     IEditionCountryServices editionCountryServices,
     IEditionTranslationServices editionTranslationServices,
     IEventDirectorServices eventDirectorServices,
     IEventServices eventServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     IStatisticServices statisticServices,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          editionCountryServices, editionServices, editionTranslationServices, eventDirectorServices, eventServices, logServices,
          notificationServices, statisticServices, userServices, userRoleServices)
 {
 }
        public void SetUp()
        {
            var unitOfWork = new UnitOfWork();

            _authUserServices    = new UserServices(unitOfWork);
            _roleServices        = new RoleServices(unitOfWork);
            _applicationServices = new ApplicationServices(unitOfWork);
            _industryServices    = new IndustryServices(unitOfWork);
            _regionServices      = new RegionServices(unitOfWork);

            _eventServices         = new EventServices(unitOfWork);
            _eventDirectorServices = new EventDirectorServices(unitOfWork);
            _logServices           = new LogServices(new UnitOfWork());
            _notificationServices  = new NotificationServices(new UnitOfWork());
            _userServices          = new UserServices(unitOfWork);
            _userRoleServices      = new UserRoleServices(unitOfWork);

            _editionHelper           = new EditionHelper();
            _inAppNotificationHelper = new InAppNotificationHelper(_editionHelper);

            _controller = new NotificationController(
                _authUserServices,
                _roleServices,
                _applicationServices,
                _industryServices,
                _regionServices,
                _eventServices,
                _eventDirectorServices,
                _logServices,
                _notificationServices,
                _userServices,
                _userRoleServices,
                _inAppNotificationHelper);
            _controller.SetDefaultUser();

            AutoMapperConfig.Register();
        }
 public GlobalController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     ICountryServices countryServices,
     IEditionServices editionServices,
     IEditionCohostServices editionCoHostServices,
     IEditionCountryServices editionCountryServices,
     IEditionKeyVisitorServices editionKeyVisitorServices,
     IEditionTranslationServices editionTranslationServices,
     IEditionTranslationSocialMediaServices editionTranslationSocialMediaServices,
     IEditionVisitorServices editionVisitorServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     IFileServices fileServices,
     IKeyVisitorServices keyVisitorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     ISubscriptionServices subscriptionServices,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     this(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          eventServices, eventDirectorServices, logServices, notificationServices, userServices, userRoleServices)
 {
     EditionServices                       = editionServices;
     EditionCoHostServices                 = editionCoHostServices;
     EditionCountryServices                = editionCountryServices;
     EditionKeyVisitorServices             = editionKeyVisitorServices;
     EditionTranslationServices            = editionTranslationServices;
     EditionTranslationSocialMediaServices = editionTranslationSocialMediaServices;
     EditionVisitorServices                = editionVisitorServices;
     FileServices         = fileServices;
     KeyVisitorServices   = keyVisitorServices;
     SubscriptionServices = subscriptionServices;
 }
 public IndustriesAPIController(IIndustryServices industryServices)
 {
     this._industriesServices = industryServices;
 }
Пример #14
0
 public IndustriesController(IIndustryServices industryServices)
 {
     _industryServices = industryServices;
 }