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