public InventorySummaryController() { _inventoryServiceMock = new Mock <IInventoryService>(); _mockInventoryGroupList = CreatMockInventoryGroupList(); _inventoryServiceMock.Setup(i => i.GetAsGroup()).Returns(_mockInventoryGroupList); _controller = new Web.Controllers.InventorySummaryController( _inventoryServiceMock.Object); }
public InventorySummaryController() { _controller = new Web.Controllers.InventorySummaryController( new InventoryService()); }