Ejemplo n.º 1
0
 public void TestAddProductOnCategory()
 {
     categoryManager.AddCategory(request);
     request.ProductId = PRODUCT_ID;
     categoryManager.AddProductOnCategory(request);
     Assert.IsNotNull(productRepository.GetAllProductsByCategoryId(request.CategoryId));
 }
Ejemplo n.º 2
0
 public void AddProductOnCategory(CategoryRequest request)
 {
     ValidateCategoryId(request.CategoryId);
     ValidateProductId(request.ProductId);
     categoryManager.AddProductOnCategory(request);
 }