Ejemplo n.º 1
0
 public GuestUserService(
     IGuestRoleProvider guestRoleProvider, IUnitOfWorkFactory unitOfWorkFactory, IUserCategoryService userCategoryService)
 {
     _guestRoleProvider = guestRoleProvider;
     _unitOfWorkFactory = unitOfWorkFactory;
     _userCategoryService = userCategoryService;
 }
Ejemplo n.º 2
0
 public Initializer(IUserService userService, IUserCategoryService userCategoryService, ISettingItemService settingItemService, IRoleService roleService, ISettingCategoryService settingCategoryService)
 {
     _userService = userService;
     _userCategoryService = userCategoryService;
     _settingItemService = settingItemService;
     _roleService = roleService;
     _settingCategoryService = settingCategoryService;
 }
Ejemplo n.º 3
0
        public SecurityUserService(ISettingItemService settingsService, IUserCategoryService userCategoryService, IUnitOfWorkFactory unitOfWorkFactory, ICacheWrapper cacheWrapper)
        {
            _settingsService = settingsService;
            _userCategoryService = userCategoryService;

            _unitOfWorkFactory = unitOfWorkFactory;
            _cacheWrapper = cacheWrapper;
        }
Ejemplo n.º 4
0
 public UsersController(
     IBaseControllerServiceFacade serviceFacade,
     IUserService userService, 
     IUserCategoryService userCategoryService)
     : base(serviceFacade)
 {
     _userService = userService;
     _userCategoryService = userCategoryService;
 }
Ejemplo n.º 5
0
 public AlbumsController(
     IUserCategoryService categories,
     IUserAlbumService albums,
     UserManager <User> userManager)
 {
     this.categories  = categories;
     this.albums      = albums;
     this.userManager = userManager;
 }
        public override void SetUp()
        {
            base.SetUp();

            _userCategoryService              = ServiceLocator.Current.GetInstance <IUserCategoryService>();
            _userCategoryRepository           = ServiceLocator.Current.GetInstance <IUserCategoryRepository>();
            _categoryRepository               = ServiceLocator.Current.GetInstance <ICategoryRepository>();
            _categoryFavouriteLevelRepository = ServiceLocator.Current.GetInstance <ICategoryFavouriteLevelRepository>();
            _unitOfWork = ServiceLocator.Current.GetInstance <IUnitOfWork>();
        }
Ejemplo n.º 7
0
 public CategoriesController(ICategoryService categoryService,
                             IUserCategoryService userCategoryService,
                             IUserService userService,
                             UserManager <ApplicationUser> userManager)
 {
     _categoryService     = categoryService;
     _userCategoryService = userCategoryService;
     _userService         = userService;
     _userManager         = userManager;
 }
Ejemplo n.º 8
0
 public ItemController(
     ISectorService sectorService,
     IItemNACategoryService itemNACategoryService
     , IUserCategoryService userCategoryService
     , IItemService itemService
     )
 {
     _sectorService         = sectorService;
     _itemNACategoryService = itemNACategoryService;
     _userCategoryService   = userCategoryService;
     _itemService           = itemService;
 }
 public UserCategoryController(
     IUserCategoryService UserCategoryService,
     ILevel1Service Level1Service,
     ILevel2Service Level2Service,
     ILevel3Service Level3Service,
     ILevel4Service Level4Service)
 {
     _UserCategoryService = UserCategoryService;
     _Level2Service       = Level2Service;
     _Level1Service       = Level1Service;
     _Level3Service       = Level3Service;
     _Level4Service       = Level4Service;
 }
Ejemplo n.º 10
0
 public PostsController(BlogAppContext context,
                        IPostService postService,
                        UserManager <ApplicationUser> userManager,
                        ICategoryService categoryService,
                        IUserService userService,
                        IUserCategoryService userCategoryService
                        )
 {
     _postService         = postService;
     _categoryService     = categoryService;
     _context             = context;
     _userManager         = userManager;
     _userService         = userService;
     _userCategoryService = userCategoryService;
 }
Ejemplo n.º 11
0
 public ApprovePostsController(
     IAdminService adminService,
     IPostService postService,
     IUserService userService,
     IUserCategoryService userCategoryService,
     UserManager <ApplicationUser> userManager,
     RoleManager <IdentityRole> roleManager)
 {
     _adminService        = adminService;
     _postService         = postService;
     _userService         = userService;
     _userCategoryService = userCategoryService;
     _userManager         = userManager;
     _roleManager         = roleManager;
 }
Ejemplo n.º 12
0
        static void Main(string[] args)
        {
            // using (JDContext context=new JDContext())
            // {
            //var user= context.User.Find(2);
            //  var category = context.Category.Find(2);
            // }

            ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();

            fileMap.ExeConfigFilename = Path.Combine(AppDomain.CurrentDomain.BaseDirectory + "ConfigFiles\\UnityConfig.xml");//找配置文件的路径
            Configuration             configuration = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);
            UnityConfigurationSection section       = (UnityConfigurationSection)configuration.GetSection(UnityConfigurationSection.SectionName);

            IUnityContainer container = new UnityContainer();

            section.Configure(container, "xzmcwjzsContainer");

            IUserCategoryService service = container.Resolve <IUserCategoryService>();

            service.ComplexOperation();
        }
Ejemplo n.º 13
0
 public UsersController(
     IUsersViewModelService usersViewModelService,
     IMessagesViewModelService messagesViewModelService,
     IUserConnectionService userConnectionService,
     IUnitOfWork unitOfWork,
     IUserService userService,
     ILanguageService languageService,
     ICategoryService categoryService,
     IUserCategoryService userCategoryService,
     ICategoryFavouriteLevelService categoryFavouriteLevelService,
     IFileService fileService)
 {
     _usersViewModelService    = usersViewModelService;
     _messagesViewModelService = messagesViewModelService;
     _userConnectionService    = userConnectionService;
     _unitOfWork                    = unitOfWork;
     _userService                   = userService;
     _languageService               = languageService;
     _categoryService               = categoryService;
     _userCategoryService           = userCategoryService;
     _categoryFavouriteLevelService = categoryFavouriteLevelService;
     _fileService                   = fileService;
 }
Ejemplo n.º 14
0
 public StandardController(IStandardService standardService, IUserCategoryService userCategoryService, IItemService itemService)
 {
     _standardService     = standardService;
     _userCategoryService = userCategoryService;
     _itemService         = itemService;
 }
Ejemplo n.º 15
0
 public NpaQuestionTemplateAccessPolicy(IUnitOfWorkFactory uowFactory, IUserCategoryService userCategoryService)
     : base(uowFactory)
 {
     _userCategoryService = userCategoryService;
 }
Ejemplo n.º 16
0
 public IndexModel(IUserCategoryService categoryService)
 {
     this.categoryService = categoryService;
 }
Ejemplo n.º 17
0
 public ResultsModel(IUserCategoryService categoryService)
 {
     this.categoryService = categoryService;
 }
Ejemplo n.º 18
0
 public UsersCategoriesController(IUnitOfWork unitOfWork, IUserCategoryService userCategoryService)
 {
     this.userCategoryService = userCategoryService;
     this.unitOfWork          = unitOfWork;
 }
 public MainIndicatorsController(ISectorService sectorService, IUserCategoryService userCategoryService)
 {
     _sectorService       = sectorService;
     _userCategoryService = userCategoryService;
 }