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

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