예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
        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);
        }
예제 #4
0
 /// <summary>
 /// Adds the book title.
 /// </summary>
 /// <param name="book">The book.</param>
 public virtual void AddBookTitle(BookTitle book)
 {
     book.BookFormat = this;
     Books.Add(book);
 }