private IProductRepository GetProductRepository()
        {
            IProductRepository productRepository = new StubProductRepository();
            string             PRODUCT_DESC      = "IPad";
            string             PRODUCT_FACTORY   = "Apple";
            double             PRODUCT_PRICE     = 23.50;
            string             PRODUCT_NAME      = "Tablet";
            Product            product           = new Product(PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESC, PRODUCT_PRICE, PRODUCT_FACTORY);

            product.AvailableStock = 100;
            productRepository.AddEntity(product);
            return(productRepository);
        }
 public CategoryServiceTest()
 {
     string PRODUCT_DESC = "IPad";
     double PRODUCT_PRICE = 23.50;
     string PRODUCT_FACTORY = "Apple";
     string PRODUCT_NAME = "Tablet";
     ICategoryRepository categoryRepository = new StubCategoryRepository();
     IProductRepository productRepository = new StubProductRepository();
     Product product = new Product(PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESC, PRODUCT_PRICE, PRODUCT_FACTORY);
     productRepository.AddEntity(product);
     request = new CategoryRequest();
     request.CategoryId = "vest.";
     request.Description = "Vestimenta";
     request.ProductId = PRODUCT_ID;
     ICategoryManager categoryManager = new CategoryManager(categoryRepository, productRepository);
     categoryService = new CategoryServiceImpl(categoryManager, new CategoryBuilderDTO(new FullProductDTOBuilder(new FieldDTOBuilder(),new ImageDTOBuilder())));
 }