Example #1
0
        internal Book(string title, string author)
        {
            BookValidator.ValidateForCreation(title, author);

            Title  = title;
            Author = author;
        }
Example #2
0
 internal void UpdateAuthor(string newAuthor)
 {
     BookValidator.ValidateAuthor(newAuthor);
     Author = newAuthor;
 }
Example #3
0
 internal void UpdateTitle(string newTitle)
 {
     BookValidator.ValidateTitle(newTitle);
     Title = newTitle;
 }