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; }
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); }