Пример #1
0
 public CreateLevyDeclarationsCommandHandler(ILevyDeclarationRepository levyDeclarationRepository, IAccountGateway accountGateway)
 {
     _levyDeclarationRepository = levyDeclarationRepository;
     _accountGateway            = accountGateway;
 }
 public GetLevyDeclarationQuery(ILevyDeclarationRepository levyDeclarationRepository)
 {
     _levyDeclarationRepository = levyDeclarationRepository ?? throw new ArgumentException("LevyDeclarationRepository cannot be null");
 }
 public StoreLevyDeclarationHandler(ILevyDeclarationRepository repository, ILog logger, IQueueService queueService)
 {
     _queueService = queueService ?? throw new ArgumentNullException(nameof(queueService));
     Repository    = repository ?? throw new ArgumentNullException(nameof(repository));
     Logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }