public WebCoreSecurityServiceBinder(IUserService userService, IRoleService roleService, IUserRolesService userRolesService, IRolePageRestrictionService rolePageRestrictionService)
 {
     this.userService = userService;
     this.roleService = roleService;
     this.userRolesService = userRolesService;
     this.rolePageRestrictionService = rolePageRestrictionService;
 }
 /// <summary>
 /// The initialize services.
 /// </summary>
 private void InitializeServices()
 {
     this.pageService = new PageService(this.pageRepositoryMock.Object, new Mock<IUnitOfWork>().Object);
     this.pageTemplateService = new PageTemplateService(this.pageTemplateRepositoryMock.Object, new Mock<IUnitOfWork>().Object);
     this.pageControllerActionService = new PageControllerActionService(this.pageControllerRepositoryActionMock.Object, new Mock<IUnitOfWork>().Object);
     this.partTypeService = new PartTypeService(this.partTypeRepositoryMock.Object, new Mock<IUnitOfWork>().Object);
     this.partService = new PartService(this.partRepositoryMock.Object, new Mock<IUnitOfWork>().Object);
     this.seoDecoratorService = new SeoDecoratorService(this.seoDecoratorRepositoryMock.Object, new Mock<IUnitOfWork>().Object);
     this.rolePageRestrictionService = new RolePageRestrictionService(this.rolePageRestrictionRepositoryMock.Object, new Mock<IUnitOfWork>().Object);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CmsPageManagerController"/> class.
        /// </summary>
        /// <param name="pageService">
        /// The page service.
        /// </param>
        /// <param name="pageTemplateService">
        /// The page Template Service.
        /// </param>
        /// <param name="pageControllerActionService">
        /// The page Controller Action Service.
        /// </param>
        /// <param name="partTypeService">
        /// The part Type Service.
        /// </param>
        /// <param name="partService">
        /// The part Service.
        /// </param>
        /// <param name="seoDecoratorService">the seo decorator service</param>
        public CmsPageManagerController(
            IPageService pageService,
            IPageTemplateService pageTemplateService,
            IPageControllerActionService pageControllerActionService,
            IPartTypeService partTypeService,
            IPartService partService,
            ISeoDecoratorService seoDecoratorService,
            IRoleService roleService,
            IRolePageRestrictionService rolePageRestrictionService)
        {
            this.pageService = pageService;
            this.seoDecoratorService = seoDecoratorService;
            this.pageTemplateService = pageTemplateService;
            this.pageControllerActionService = pageControllerActionService;
            this.partTypeService = partTypeService;
            this.partService = partService;
            this.seoDecoratorService = seoDecoratorService;
            this.roleService = roleService;
            this.rolePageRestrictionService = rolePageRestrictionService;

            this.ViewBag.AddInfo = "AdditionalInfo";
        }