public void InsertBookInfo() { bi.BookTitle = "C#"; bi.SubTitle = ".Net Framework"; bi.PriceOld = 45; bi.PriceNew = 30; bi.Author = "Jin"; bi.Publisher = "Massey University"; bi.PublishDate = Convert.ToDateTime("2016-02-29"); bi.SaleDate = System.DateTime.Now; bi.Isbn = "123456789"; bi.TypeId = "2"; bi.Details = "<p>C# is a good computer Language</p>"; bi.ImgTitle = "http://www.google.co.nz/img/aaa"; int i = dal.InsertBookInfo(bi); Assert.IsTrue(i > 0); }
/// <summary> /// Insert book info /// </summary> /// <param name="bi"></param> /// <returns></returns> public bool InsertBookInfo(BookInfo bi) { return(dal.InsertBookInfo(bi) > 0); }