Exemplo n.º 1
0
        public void Initialize()
        {
            _productLogic = new Mock <IProductFunctionality>();
            _productLogic.Setup(mock => mock.CreateItemFromFactory()).Returns(new ProductMock());
            _controller = new ProductsController(_productLogic.Object);

            _slExpectedProduct = ProductFactory.CreateProduct();
            _expectedProduct   = ToBll(_slExpectedProduct);
        }
Exemplo n.º 2
0
 public void Initialize()
 {
     _expectedProduct = ProductFactory.CreateProduct();
 }