public void FindByISBN() { // Arrange _daoMock .Setup(mock => mock.Load(It.IsAny <string>())) .Returns(DefaultBook()); // Act var book = _bookManagerService.FindByISBN(NewGuid()); // Assert Assert.Equal(ExistingISBN, book.ISBN); _daoMock.Verify(mock => mock.Load(It.IsAny <string>()), Times.Once); }
public SimpleBookDto Load(string id) { return(_bookManagerService.FindByISBN(id)); }