示例#1
0
 public static bool ValidateBookNotNul(this RequestLoanCommand command, Book book)
 {
     return(AssertionsConcern.IsSatisfiedBy(AssertionsConcern.IsNotNull(book, Messages.BookLoan_BookNotFound)));
 }
示例#2
0
 public static bool ValidatePersonNotNul(this RequestLoanCommand command, Person person)
 {
     return(AssertionsConcern.IsSatisfiedBy(AssertionsConcern.IsNotNull(person, Messages.BookLoan_PersonNotFound)));
 }
示例#3
0
 public static bool ValidateBookGuid(this RequestLoanCommand command)
 {
     return(AssertionsConcern.IsSatisfiedBy(AssertionsConcern.ValidateGuidFromString(command.BookId, Messages.BookLoan_BookGuidStringIsEmpty, Messages.BookLoan_BookGuidIsEmpty, Messages.BookLoan_BookGuidIsInvalid)));
 }