示例#1
0
        public void DeleteBookFromDatabase()
        {
            Books book = new Books()
            {
                id = 104, author = "Jane Austin", title = "Awesome book", type = "Classic", penaltyCost = 20, state = 1
            };

            Assert.IsTrue(BookCRUD.addBook(book.id, book.title, book.author, book.type, book.penaltyCost, DateTime.Today, (int)book.state));
            Assert.IsTrue(BookCRUD.removeBook(book.id));
        }
示例#2
0
 private void BookDelete()
 {
     BookCRUD.removeBook(this.BookId);
 }