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); }
public void Initialize() { _expectedProduct = ProductFactory.CreateProduct(); }