示例#1
0
 public NominalAccountsController(IUnitOfWork unitOfWork, INominalAccountRepository repo, IRedisConnectionFactory cache, IMediator mediator)
 {
     _unitOfWork = unitOfWork;
     _nominalAccountRepository = repo;
     _cache    = cache;
     _mediator = mediator;
 }
 public NominalAccountCommandsHandler(
     ILogger <NominalAccountCommandsHandler> logger,
     IIdentityService identityService,
     IUnitOfWork unitOfWork,
     IMapper mapper,
     INominalAccountRepository nominalAccountConfigurationRepository)
 {
     _unitOfWork               = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _logger                   = logger ?? throw new ArgumentNullException(nameof(logger));
     _identityService          = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _mapper                   = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _nominalAccountRepository = nominalAccountConfigurationRepository ?? throw new ArgumentNullException(nameof(nominalAccountConfigurationRepository));
 }