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