public UserViewManager(IUserManager userManager, ICacheStoreManager cacheStoreManager, ILogManager logManager
                        , IUserViewRepository userViewRepository, IUserViewTransformationManager userViewTransformationManager)
     : base(userManager, cacheStoreManager, logManager)
 {
     _UserViewRepository            = ValidateRepository(userViewRepository);
     _UserViewTransformationManager = ValidateManager(userViewTransformationManager);
 }
Esempio n. 2
0
 public AuthenticationController(IUserViewRepository userViewRepository, IRoleViewRepository roleViewRepository, IConfiguration configuration, IMapper mapper)
 {
     _configuration      = configuration;
     _userViewRepository = userViewRepository;
     _roleViewRepository = roleViewRepository;
     _mapper             = mapper;
 }
Esempio n. 3
0
 public NetPositionController(ITradeViewGenericRepository tradeViewGenericRepo, IRoleViewRepository roleRepository,
                              IUserViewRepository userViewRepository, IGroupDealerMappingRepository groupDealerMappingRepository)
 {
     _tradeViewGenericRepo         = tradeViewGenericRepo;
     _roleRepository               = roleRepository;
     _userViewRepository           = userViewRepository;
     _groupDealerMappingRepository = groupDealerMappingRepository;
 }
Esempio n. 4
0
        public UserViewController(IUserViewRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.UserViewRepository = repository;
        }
        public UserViewController(IUserViewRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.UserViewRepository = repository;
        }
Esempio n. 6
0
 public TradeViewController(IMapper mapper, ITradeViewRepository tradeViewRepository, ITradeViewGenericRepository tradeViewGenericRepository
                            , IUserViewRepository userViewRepository, IRoleViewRepository roleViewRepository, IGroupDealerMappingRepository groupDealerMappingRepository)
 {
     _mapper = mapper;
     _tradeViewRepository          = tradeViewRepository;
     _tradeViewGenericRepository   = tradeViewGenericRepository;
     _userViewRepository           = userViewRepository;
     _roleViewRepository           = roleViewRepository;
     _groupDealerMappingRepository = groupDealerMappingRepository;
 }
Esempio n. 7
0
        public UserViewController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.UserViewRepository = new MixERP.Net.Schemas.Office.Data.UserView
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        public UserViewController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.UserViewRepository = new MixERP.Net.Schemas.Office.Data.UserView
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Esempio n. 9
0
 public UserManagementController(IUserViewRepository userViewRepository, IRoleViewRepository roleViewRepository, IMapper mapper)
 {
     _userViewRepository = userViewRepository;
     _roleViewRepository = roleViewRepository;
     _mapper             = mapper;
 }
 public GetUserHandler(IUserViewRepository userViewRepository)
 {
     _userViewRepository = userViewRepository;
 }
        private UserViewController CreateUserViewController(HttpRequestMessage httpRequest, IUserViewRepository userViewRepository, IUserViewScreenRepository userViewScreenRepository)
        {
            UserViewManager           UserViewManager    = new UserViewManager(userManager.Object, cacheStoreManager.Object, mockLogManager.Object, userViewRepository, transformationManager, userViewScreenRepository);
            UserPreferencesAPIManager userViewAPIManager = new UserPreferencesAPIManager(userManager.Object, cacheStoreManager.Object, mockLogManager.Object, UserViewManager);
            UserViewController        userViewController = new UserViewController(userManager.Object, userViewAPIManager)
            {
                Request       = httpRequest,
                Configuration = new HttpConfiguration()
            };

            return(userViewController);
        }
Esempio n. 12
0
 public GetAllUserAccountsHandler(IUserViewRepository userViewRepository)
 {
     _userViewRepository = userViewRepository;
 }