public void DeleteBookTest() { var bookingrepo = new book_management(bookcontextmock.Object); var bookdelete = bookingrepo.DeleteExistingBook(2); Assert.AreEqual(true, bookdelete); }
public void GetBookWithIdTest() { var bookingrepo = new book_management(bookcontextmock.Object); var bookinglist = bookingrepo.GetBookWithId(1); Assert.IsNotNull(bookinglist); }
public void UpdateBookDetailsTest() { var bookingrepo = new book_management(bookcontextmock.Object); var bookupdate = bookingrepo.UpdateBook(1, new Books { BookName = "high 5", BookAuthor = "sam anand", BookEdition = 2 }); Assert.AreEqual(true, bookupdate); }
public void AddBookingDetailTest() { var bookingrepo = new book_management(bookcontextmock.Object); var bookingobj = bookingrepo.AddNewBook(new Books { BookName = "third kite runner", BookAuthor = "khaled", BookEdition = 2 }); //Assert.IsNotNull(bookingobj); Assert.AreEqual(true, bookingobj); }