Пример #1
0
        public UpdateProductTests()
        {
            _context = ProductCatalogContextFactory.Create();
            var mapper = MapperFactory.Create();

            _handler = new UpdateProductHandler(_context, mapper);
        }
Пример #2
0
        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);
 }
Пример #5
0
 public DeleteProductTests()
 {
     _context = ProductCatalogContextFactory.Create();
     _handler = new DeleteProductHandler(_context);
 }