public void CreateDiscardListNoBooksInBadCondition() { var bookManagerMock = new Mock <IBookManager>(); bookManagerMock.Setup(m => m.GetAllBooksWithConditionOne(It.IsAny <int>(), It.IsAny <bool>())) .Returns(new List <Book>()); var shelfManagerMock = SetupMock(new Shelf { ShelfID = 2 }); var bookAPI = new BookAPI(shelfManagerMock.Object, bookManagerMock.Object); var result = bookAPI.CreateDiscardList(); Assert.AreEqual(CreateDiscardListStatusCodes.NoBooksInConditionOne, result); bookManagerMock.Verify( m => m.CreateDiscardList(It.IsAny <Shelf>(), It.IsAny <Book>()), Times.Never); }