public CreateUserAuthorizationHandler(IUserAuthorizationRepository repository, IBusPublisher busPublisher, IAccountingGroupVerifier agVerifier, IUserVerifier userVerifier)
 {
     _repository   = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
     _agVerifier   = agVerifier ?? throw new ArgumentNullException(nameof(agVerifier));
     _userVerifier = userVerifier ?? throw new ArgumentNullException(nameof(userVerifier));
 }
 public BrowseUserAuthorizationsHandler(IUserAuthorizationRepository repository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
示例#3
0
 public UpdateUserAuthorizationHandler(IUserAuthorizationRepository repository, IBusPublisher busPublisher)
 {
     _repository   = repository ?? throw new ArgumentNullException(nameof(repository));
     _busPublisher = busPublisher ?? throw new ArgumentNullException(nameof(busPublisher));
 }
 public static void UseRepository(IUserAuthorizationRepository userAuthorizationRepository)
 {
     UserAuthorizationRepository = userAuthorizationRepository;
 }