Browse Source

Refactor OrderEventHandler to use IProductRepository for improved abstraction

pull/21648/head
ahmetfarukulu 2 years ago
parent
commit
75cb1e878d
  1. 4
      docs/en/tutorials/microservice/part-07.md
  2. 4
      docs/en/tutorials/modular-crm/part-07.md

4
docs/en/tutorials/microservice/part-07.md

@ -170,9 +170,9 @@ public class OrderEventHandler :
IDistributedEventHandler<OrderPlacedEto>,
ITransientDependency
{
private readonly IRepository<Product, Guid> _productRepository;
private readonly IProductRepository _productRepository;
public OrderEventHandler(IRepository<Product, Guid> productRepository)
public OrderEventHandler(IProductRepository productRepository)
{
_productRepository = productRepository;
}

4
docs/en/tutorials/modular-crm/part-07.md

@ -184,9 +184,9 @@ namespace ModularCrm.Products.Orders
IDistributedEventHandler<OrderPlacedEto>,
ITransientDependency
{
private readonly IRepository<Product, Guid> _productRepository;
private readonly IProductRepository _productRepository;
public OrderEventHandler(IRepository<Product, Guid> productRepository)
public OrderEventHandler(IProductRepository productRepository)
{
_productRepository = productRepository;
}

Loading…
Cancel
Save