Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task GetAllAsync_ReturnBooks() { var queryResult = new QueryResult(); var queryRequest = new QueryRequest(); _booksService.Setup(bs => bs.GetBooksAsync(queryRequest)).ReturnsAsync(queryResult); var result = await _booksController.GetAllAsync(queryRequest); Assert.That(result.Value, Is.EqualTo(queryResult)); _booksService.Verify(bs => bs.GetBooksAsync(queryRequest)); }