示例#1
0
 public static bool ValidateAuthorGuid(this AddBookCommand command)
 {
     return(AssertionsConcern.IsSatisfiedBy(AssertionsConcern.ValidateGuidFromString(command.AuthorId, Messages.Book_AuthorGuidStringIsEmpty, Messages.Author_AuthorGuidIsEmpty, Messages.Book_AuthorGuidIsInvalid)));
 }
示例#2
0
 public static bool ValidateAuthorNotNul(this AddBookCommand command, Author author)
 {
     return(AssertionsConcern.IsSatisfiedBy(AssertionsConcern.IsNotNull(author, Messages.Book_AuthorShouldNotBeNull)));
 }