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 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(); }