コード例 #1
0
 public static bool CommandNotNull(this ValidationService command)
 {
     return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotNull(command, Resources.Messages.InvalidCommandRequested)));
 }
コード例 #2
0
 public static bool HasSerialKey(this ValidationService command)
 {
     return(HasSerialKeyNotNull(command) && HasSerialKeyNotEmpty(command));
 }
コード例 #3
0
 public static bool HasFoundPerson(this ValidationService command, Person person)
 {
     return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotNull(person, Resources.Messages.UserNotFound)));
 }
コード例 #4
0
 public static bool HasSerialKeyNotEmpty(this ValidationService command)
 {
     return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotEmpty(command.SerialKey, Resources.Messages.SerialKeyRequired)));
 }