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); }
public MainService( ICustomerService customerService, ICustomerLocationService customerLocationService, IProductService productService, IClientUserService clientUserService) { _customerService = customerService; _customerLocationService = customerLocationService; _productService = productService; _clientUserService = clientUserService; }
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; }
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)); }
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; }
public ClientUserController(IClientUserService clientUserService) { this.clientUserService = clientUserService; }
public CurrentUserInfo(IClientUserService user) { _user = user; _user.UserAuthenticatedEvent += _user_UserAuthenticatedEvent; }
public ProductsController(IProductService productService, IClientUserService clientUserService) { _productService = productService; _clientUserService = clientUserService; }
public ClientUserController(IClientUserService service, IContextService contextService, ILogger <ClientUserController> log) { _service = service; _contextService = contextService; _log = log; }
public ClientUsersController(IClientUserService clientUserService, IAuthenticationService authenticationService) { this.clientUserService = clientUserService; this.authenticationService = authenticationService; }
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; }
public ClientUserDetailsController(IClientUserService clientUserService, IBranchesService clientBranchService, IReferenceManagement referenceManagement) { _clientUserService = ValidationUtil.CheckOnNullAndThrowIfNull(clientUserService); _clientBranchService = ValidationUtil.CheckOnNullAndThrowIfNull(clientBranchService); _referenceManagement = ValidationUtil.CheckOnNullAndThrowIfNull(referenceManagement); }