Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task ActivateBookAsync_Fail_ReturnsBadRequest() { _bookService.Setup(m => m.ActivateAsync(It.IsAny <int>())).ReturnsAsync(false); var result = await _booksController.ActivateBookAsync(It.IsAny <int>()); result.Should().BeOfType <BadRequestResult>(); }