public void CallGetAllInventoryItemsUnderSafeteyStock() { //Arrange //var list = new List<InventoryItem>(); mockInventoryItemsService = new Mock <IInventoryItemsService>(); mockPhysicalItemsService = new Mock <IPhysicalItemsService>(); //mockInventoryItemsService.Setup(m => m.GetAllUnderSafetyStock()).Returns(list); sut = new DashboardController(mockInventoryItemsService.Object, mockPhysicalItemsService.Object); var listUnderSafetyStock = sut.GetAllInventoryItemsUnderSafetyStock(); mockInventoryItemsService.Verify(m => m.GetAllUnderSafetyStock()); }