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