Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void FindByIsbnOkResultTest() { var isbn = "978-8573255119"; var response = _controller.FindByIsbn(isbn).Result as OkObjectResult; Assert.IsNotNull(response); Assert.AreEqual(200, response.StatusCode); Assert.IsInstanceOfType(response.Value, typeof(BookDto)); Assert.AreEqual(isbn, ((BookDto)response.Value).Isbn); }