public void LoadAll() { // Arrange _daoMock .Setup(mock => mock.LoadAll()) .Returns(new List <Book>()); // Act var list = _bookManagerService.LoadAll(); // Assert Assert.Empty(list); _daoMock.Verify(mock => mock.LoadAll(), Times.Once); }
public ICollection <SimpleBookDto> LoadAll() { return(_bookManagerService.LoadAll()); }