Exemplo n.º 1
0
        public InventorySummaryController()
        {
            _inventoryServiceMock   = new Mock <IInventoryService>();
            _mockInventoryGroupList = CreatMockInventoryGroupList();
            _inventoryServiceMock.Setup(i => i.GetAsGroup()).Returns(_mockInventoryGroupList);

            _controller = new Web.Controllers.InventorySummaryController(
                _inventoryServiceMock.Object);
        }
Exemplo n.º 2
0
 public InventorySummaryController()
 {
     _controller = new Web.Controllers.InventorySummaryController(
         new InventoryService());
 }