public static bool CommandNotNull(this ValidationService command) { return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotNull(command, Resources.Messages.InvalidCommandRequested))); }
public static bool HasSerialKey(this ValidationService command) { return(HasSerialKeyNotNull(command) && HasSerialKeyNotEmpty(command)); }
public static bool HasFoundPerson(this ValidationService command, Person person) { return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotNull(person, Resources.Messages.UserNotFound))); }
public static bool HasSerialKeyNotEmpty(this ValidationService command) { return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotEmpty(command.SerialKey, Resources.Messages.SerialKeyRequired))); }