Ejemplo n.º 1
0
 public ProductCopyController(
     IProductCopyService productCopyService,
     IRepository <Product> productRepository,
     IUnitOfWorkManager unitOfWork)
 {
     this.productCopyService = productCopyService;
     this.productRepository  = productRepository;
     this.unitOfWork         = unitOfWork;
 }
 public ProductCopyController(
     IProductCopyService productCopyService, 
     IRepository<Product> productRepository, 
     IUnitOfWorkManager unitOfWork)
 {
     this.productCopyService = productCopyService;
     this.productRepository = productRepository;
     this.unitOfWork = unitOfWork;
 }
Ejemplo n.º 3
0
        public void SetUp()
        {
            DomainEvent.TurnOff();

            productCategoryOrderableService = MockRepository.GenerateStub <IOrderableService <ProductCategory> >();
            productRepository  = new FakeRepository <Product>();
            productCopyService = new ProductCopyService(productCategoryOrderableService, productRepository);

            originalCategory = new Category();
            originalProduct  = CreateProduct(originalCategory);
        }
        public void SetUp()
        {
            DomainEvent.TurnOff();

            productCategoryOrderableService = MockRepository.GenerateStub<IOrderableService<ProductCategory>>();
            productRepository = new FakeRepository<Product>();
            productCopyService = new ProductCopyService(productCategoryOrderableService, productRepository);

            originalCategory = new Category();
            originalProduct = CreateProduct(originalCategory);
        }
        public void SetUp()
        {
            productCopyService = MockRepository.GenerateStub<IProductCopyService>();
            productRepository = new FakeRepository<Product>();
            unitOfWork = MockRepository.GenerateStub<IUnitOfWorkManager>();

            productCopyController = new ProductCopyController(
                productCopyService,
                productRepository,
                unitOfWork);
        }
        public void SetUp()
        {
            productCopyService = MockRepository.GenerateStub <IProductCopyService>();
            productRepository  = new FakeRepository <Product>();
            unitOfWork         = MockRepository.GenerateStub <IUnitOfWorkManager>();

            productCopyController = new ProductCopyController(
                productCopyService,
                productRepository,
                unitOfWork);
        }