public Authorization(IVkApiVersionManager versionManager, IRestClient restClient, IReceiptParser parser, [CanBeNull] ILogger logger)
 {
     _versionManager = versionManager;
     _restClient     = restClient;
     _parser         = parser;
     _logger         = logger;
 }
Example #2
0
 public VkAndroidAuthorization([NotNull] IVkApiInvoker vkApiInvoker,
                               [NotNull] IReceiptParser parser,
                               [CanBeNull] ILogger <VkAndroidAuthorization> logger)
 {
     _vkApiInvoker = vkApiInvoker;
     ReceiptParser = parser;
     _logger       = logger;
 }
Example #3
0
 public ImportReceiptHandler(
     IApplicationContext appContext,
     IDateTimeOffset dateTimeOffset,
     IFakturContext dbContext,
     IGuid guid,
     IMapper mapper,
     IReceiptParser parser,
     IOptions <TaxOptions> taxOptions
     )
 {
     this.appContext     = appContext ?? throw new ArgumentNullException(nameof(appContext));
     this.dateTimeOffset = dateTimeOffset ?? throw new ArgumentNullException(nameof(dateTimeOffset));
     this.dbContext      = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     this.guid           = guid ?? throw new ArgumentNullException(nameof(guid));
     this.mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.parser         = parser ?? throw new ArgumentNullException(nameof(parser));
     this.taxOptions     = taxOptions?.Value ?? throw new ArgumentNullException(nameof(taxOptions));
 }
Example #4
0
 internal Context(IPdfParser pdfParser, IReceiptFormatParser formatParser, IReceiptParser <FuelReceiptData> fuelReceiptParser)
 {
     PdfParser           = pdfParser;
     ReceiptFormatParser = formatParser;
     FuelReceiptParser   = fuelReceiptParser;
 }