Exemple #1
0
        public void AddNewBook()
        {
            BooksModel classObj = new BooksModel();
            BooksModel obj      = new BooksModel();

            obj.Author = "Test Author";
            obj.Title  = "Test Title";
            Assert.IsTrue(classObj.AddNewBook(obj));
        }
Exemple #2
0
        /// <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));
        }