Beispiel #1
0
 public void ChangeRegistrationToConfirmed(IDateTimeOffsetService dtoService)
 {
     if (this.Role == UserRole.Registered && this.subscriptionDate == null)
     {
         this.subscriptionDate = dtoService.Now;
     }
     else
     {
         throw UserException.CannotConfirmRegistrationException(this);
     }
 }