コード例 #1
0
 public ClientCustomerService(IClientUserService clientUserService)
 {
     _clientUserService = clientUserService;
     _db            = new ApplicationDbContext();
     _currentUserId = HttpContext.Current.User.Identity.GetUserId();
     _unitOfWork    = new UnitOfWork(_db);
 }
        public void Init()
        {
            clientUserRepository = Substitute.For <IClientUserRepository>();
            var mapper = new MapperConfiguration(x => x.AddProfile(new MappingProfile())).CreateMapper();

            log               = Substitute.For <ILog>();
            cache             = Substitute.For <ICacheService>();
            clientUserService = new ClientUserService(clientUserRepository, mapper, log, cache);
        }
コード例 #3
0
 public MainService(
     ICustomerService customerService,
     ICustomerLocationService customerLocationService,
     IProductService productService,
     IClientUserService clientUserService)
 {
     _customerService         = customerService;
     _customerLocationService = customerLocationService;
     _productService          = productService;
     _clientUserService       = clientUserService;
 }
コード例 #4
0
 public UserController(ISystemLog Logger,
                       IClientUserService UserService,
                       IBaseRepository <DataBase.TVenderTechnician, TvenderTechnician> TechnicianRepo,
                       IBaseRepository <DataBase.TUSRMST, Tusrmst> UserRepo,
                       IImgRepository ImgRepo)
 {
     _logger         = Logger;
     _userRepo       = UserRepo;
     _userService    = UserService;
     _technicianRepo = TechnicianRepo;
     _ImgRepo        = ImgRepo;
 }
コード例 #5
0
 public WorkOrderService(
     IClientUserService clientUserService,
     IProductService productService,
     ICustomerLocationService customerLocationService,
     ICustomerService customerService
     )
 {
     _db = new ApplicationDbContext();
     _clientUserService       = clientUserService;
     _productService          = productService;
     _customerLocationService = customerLocationService;
     _customerService         = customerService;
     _currentUserId           = HttpContext.Current.User.Identity.GetUserId();
     _unitOfWork  = new UnitOfWork(_db);
     _userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(_db));
 }
コード例 #6
0
 public WorkOrdersController(
     IWorkOrderService workOrderService,
     IClientUserService clientUserService,
     IMainService mainService,
     IClientCustomerService clientCustomerService,
     IProductService productService,
     ICustomerLocationService customerLocationService,
     ICustomerService customerService
     )
 {
     _workOrderService        = workOrderService;
     _clientUserService       = clientUserService;
     _mainService             = mainService;
     _clientCustomerService   = clientCustomerService;
     _productService          = productService;
     _customerLocationService = customerLocationService;
     _customerService         = customerService;
 }
コード例 #7
0
 public ClientUserController(IClientUserService clientUserService)
 {
     this.clientUserService = clientUserService;
 }
コード例 #8
0
 public CurrentUserInfo(IClientUserService user)
 {
     _user = user;
     _user.UserAuthenticatedEvent += _user_UserAuthenticatedEvent;
 }
コード例 #9
0
 public ProductsController(IProductService productService, IClientUserService clientUserService)
 {
     _productService    = productService;
     _clientUserService = clientUserService;
 }
コード例 #10
0
 public ClientUserController(IClientUserService service, IContextService contextService, ILogger <ClientUserController> log)
 {
     _service        = service;
     _contextService = contextService;
     _log            = log;
 }
コード例 #11
0
 public ClientUsersController(IClientUserService clientUserService, IAuthenticationService authenticationService)
 {
     this.clientUserService     = clientUserService;
     this.authenticationService = authenticationService;
 }
コード例 #12
0
 public ClientUsersController()
 {
     clientUserService     = new ClientUserService();
     authenticationService = new Services.Implementations.AuthenticationService();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="clientUserService"></param>
 /// <param name="log"></param>
 /// <param name="tokenHelper"></param>
 public ClientUserController(IClientUserService clientUserService, ILog log, ITokenHelper tokenHelper)
 {
     this.clientUserService = clientUserService;
     this.log         = log;
     this.tokenHelper = tokenHelper;
 }
コード例 #14
0
		public ClientUserDetailsController(IClientUserService clientUserService, IBranchesService clientBranchService, IReferenceManagement referenceManagement)
		{
			_clientUserService = ValidationUtil.CheckOnNullAndThrowIfNull(clientUserService);
			_clientBranchService = ValidationUtil.CheckOnNullAndThrowIfNull(clientBranchService);
			_referenceManagement = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement);
		}