public static bool HasSerialKeyNotNull(this UserUpdatePushTokenCommand command) { return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotNull(command.SerialKey, Resources.Messages.SerialKeyRequired))); }
public static bool HasPushToken(this UserUpdatePushTokenCommand command) { return(HasPushTokenNotNull(command) && HasPushTokenNotEmpty(command)); }
public static bool HasFoundPerson(this UserUpdatePushTokenCommand command, Person person) { return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotNull(person, Resources.Messages.UserNotFound))); }
public static bool HasPushTokenNotEmpty(this UserUpdatePushTokenCommand command) { return(AssertionConcern.IsSatisfiedBy(AssertionConcern.AssertNotEmpty(command.PushToken, Resources.Messages.PushTokenRequired))); }