public UserValidationApplicationService(IApplicationService applicationService, IUserContextRepository userContextRepository, IUserApplicationRepository userFileRepository) { _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService)); _userContextRepository = userContextRepository ?? throw new ArgumentNullException(nameof(userContextRepository)); _userApplicationRepository = userFileRepository ?? throw new ArgumentNullException(nameof(userFileRepository)); }
public ApplicationRepository(IUnitOfWork unitOfWork, IDateProvider dateProvider, IUserContextRepository userContextRepository, IMapper <ApplicationListItemDbDto, ApplicationListItemDto> listItemMapper) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _dateProvider = dateProvider ?? throw new ArgumentNullException(nameof(dateProvider)); _userContextRepository = userContextRepository ?? throw new ArgumentNullException(nameof(userContextRepository)); _listItemMapper = listItemMapper ?? throw new ArgumentNullException(nameof(listItemMapper)); }
/// <summary> /// /// </summary> /// <param name="container"></param> /// <param name="mapper"></param> public AuthenticationCustomSvc(IServiceProvider container, IMapper mapper) : base(container, mapper) { _userContext = container.GetService <IUserContextRepository>(); }
/// <summary> /// /// </summary> /// <param name="container"></param> /// <param name="mapper"></param> public UserService(IServiceProvider container, IMapper mapper) : base(container, mapper) { _userContext = container.GetService <IUserContextRepository>(); }
private LoginContext() { userContextRepository = new UserContextRepository(); }