public UpdateProductTests() { _context = ProductCatalogContextFactory.Create(); var mapper = MapperFactory.Create(); _handler = new UpdateProductHandler(_context, mapper); }
public GetByCodeTests() { var context = ProductCatalogContextFactory.Create(); var loggerMock = new Mock <ILogger <GetByCodeQueryHandler> >(); _handler = new GetByCodeQueryHandler(context, loggerMock.Object); }
public GetAllTests() { var context = ProductCatalogContextFactory.Create(); var mapper = MapperFactory.Create(); _handler = new GetAllQueryHandler(context, mapper); }
public UpdateCategoryTests() { _context = ProductCatalogContextFactory.Create(); _handler = new UpdateCategoryHandler(_context); }
public DeleteProductTests() { _context = ProductCatalogContextFactory.Create(); _handler = new DeleteProductHandler(_context); }