public void AddNewBook() { BooksModel classObj = new BooksModel(); BooksModel obj = new BooksModel(); obj.Author = "Test Author"; obj.Title = "Test Title"; Assert.IsTrue(classObj.AddNewBook(obj)); }
/// <summary> /// Saves New Book /// </summary> /// <param> BooksModel</param> /// <returns>Bool</returns> public bool Post_SaveNewBook(BooksModel bModel) { BooksModel obj = new BooksModel(); return(obj.AddNewBook(bModel)); }