Example #1
0
 public UnitOfWork(
     ITestCategoryRepository categoryRepository,
     ITestOrderProductRepository orderProductRepository,
     ITestProductRepository productRepository,
     ITestOrderRepository orderRepository)
 {
     TestCategoryRepository     = categoryRepository;
     TestOrderProductRepository = orderProductRepository;
     TestProductRepository      = productRepository;
     TestOrderRepository        = orderRepository;
 }
Example #2
0
 public UnitOfWork(
     ITestCategoryRepository testCategories,
     ITestProductRepository testProducts,
     ITestOrderRepository testOrders,
     ITestProductCategoryRepository testProductCategories,
     ITestOrderProductRepository testOrderProducts)
 {
     TestCategories        = testCategories;
     TestProducts          = testProducts;
     TestOrders            = testOrders;
     TestProductCategories = testProductCategories;
     TestOrderProducts     = testOrderProducts;
 }