/// <summary> /// Adds the book title. /// </summary> /// <param name="bookTitle">The book title.</param> public virtual void AddBookTitle(BookTitle bookTitle) { if (Books == null) { Books = new List<BookTitle>(); } Books.Add(bookTitle); }
/// <summary> /// Adds the book title. /// </summary> /// <param name="book">The book.</param> public virtual void AddBookTitle(BookTitle book) { if (Books == null) { Books = new List<BookTitle>(); } book.Publisher = this; Books.Add(book); }
public void BookTitle_Create_Succeed() { string title = "Asp.Net Mvc 2 In Action"; BookTitle bookTitle = new BookTitle(title); Assert.NotNull(bookTitle.Isbn); Console.WriteLine(bookTitle.Isbn); Assert.Equal<string>(bookTitle.Title, title); }
/// <summary> /// Adds the book title. /// </summary> /// <param name="book">The book.</param> public virtual void AddBookTitle(BookTitle book) { book.BookFormat = this; Books.Add(book); }