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