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();
        }
Example #2
0
 public TaskServices(IUnitOfWork unitOfWork, IEditionHelper editionHelper, IEmailNotificationHelper emailNotificationHelper)
     : base(unitOfWork)
 {
     _unitOfWork                 = (UnitOfWork)unitOfWork;
     _editionServices            = new EditionServices(unitOfWork);
     _editionTranslationServices = new EditionTranslationServices(unitOfWork);
     _eventServices              = new EventServices(unitOfWork);
     _eventDirectorServices      = new EventDirectorServices(unitOfWork);
     _editionServiceHelper       = new EditionServiceHelper(unitOfWork);
     _editionHelper              = editionHelper;
     _emailNotificationHelper    = emailNotificationHelper;
 }
 public UserMailerController(
     IUserServices authUserServices,
     IRoleServices roleServices,
     IApplicationServices applicationServices,
     IIndustryServices industryServices,
     IRegionServices regionServices,
     IEditionServices editionServices,
     IEventServices eventServices,
     IEventDirectorServices eventDirectorServices,
     ILogServices logServices,
     INotificationServices notificationServices,
     IEditionHelper editionHelper,
     IUserServices userServices,
     IUserRoleServices userRoleServices) :
     base(authUserServices, roleServices, applicationServices, industryServices, regionServices,
          editionServices, eventServices, eventDirectorServices, logServices, notificationServices, userServices, userRoleServices)
 {
     _editionHelper = editionHelper;
 }
        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();
        }
Example #5
0
 public InAppNotificationHelper(IEditionHelper editionHelper)
 {
     _editionHelper = editionHelper;
 }