Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void DeleteBooks_WithValid_BookIdPass_ReturnStatusCode200() { //Arrange var dbContext = DbContextMocker.WookieBooksImportersDbContext(); var booksController = new BooksController(dbContext, null); int bookid = 2; // Act var result = booksController.DeleteBooks(bookid); var record = result.Result.Result as ObjectResult; dbContext.Dispose(); // Assert Assert.Equal(StatusCodes.Status200OK, record.StatusCode); }