public CatalogIntegrationEventService(CarCatalogDbContext carCatalogDbContext, Func <DbConnection, IEventLogService> integrationEventLogServiceFactory, IEventBus eventBus, ILogger <CatalogIntegrationEventService> logger) { _carCatalogDbContext = carCatalogDbContext ?? throw new ArgumentNullException(nameof(carCatalogDbContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_carCatalogDbContext.Database.GetDbConnection()); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public CarsCatalogController(CarCatalogDbContext carCatalogDbContext, ICatalogIntegrationEventService catalogIntegrationEventService) { _carCatalogDbContext = carCatalogDbContext; _catalogIntegrationEventService = catalogIntegrationEventService; }
public CategoryRepository(CarCatalogDbContext carCatalogDbContext) { _carCatalogDbContext = carCatalogDbContext; }
public FeaturesController(CarCatalogDbContext context, IMapper mapper) { this.mapper = mapper; this.context = context; }