public ProductController( IProductIntegrationEventService integrationEvent, SalesDbContext context, IBusControl bus) { _integrationEvent = integrationEvent; _context = context; }
public CreateProductScenario() { _productEventServiceMoq = new ProductIntegrationEventServiceMock(_databaseFixture.WorkDbContext); _bus = new Mock <IBusControl>(); _controller = new ProductController( _productEventServiceMoq, _databaseFixture.WorkDbContext, _bus.Object); _productViewModel = new ProductViewModel() { CategoryId = 1, Featured = true, Name = "Teste 1", Price = 1.99m }; }
public ProductAddedDomainEventHandler(IProductIntegrationEventService productIntegrationEventService) { _productIntegrationEventService = productIntegrationEventService; }
public EventPublishBehaviour(IProductIntegrationEventService productIntegrationEventService) { _productIntegrationEventService = productIntegrationEventService; }
public ProductPropertiesChangedEventHandler(IProductIntegrationEventService productIntegrationEventService) { _productIntegrationEventService = productIntegrationEventService; }