Наследование: System.MarshalByRefObject
Пример #1
0
        private static ChangePassword_Result ValidatePasswordLength()
        {
            var tmConfig          = TMConfig.Current;
            var showDetailedErors = TMConfig.Current.showDetailedErrorMessages();
            var response          = new ChangePassword_Result
            {
                Message =
                    showDetailedErors
                        ? tmConfig.TMErrorMessages.PasswordLengthErrorMessage
                        : tmConfig.TMErrorMessages.General_PasswordChange_Error_Message,
                PasswordChanged = false
            };

            return(response);
        }
Пример #2
0
        private static ChangePassword_Result CurrentPasswordAndNewPasswordAreEqualsResponse()
        {
            var tmConfig          = TMConfig.Current;
            var showDetailedErors = TMConfig.Current.showDetailedErrorMessages();
            var response          = new ChangePassword_Result
            {
                Message =
                    showDetailedErors
                        ? tmConfig.TMErrorMessages.NewPassword_ErrorMessage
                        : tmConfig.TMErrorMessages.General_PasswordChange_Error_Message,
                PasswordChanged = false
            };

            return(response);
        }
Пример #3
0
 private static ChangePassword_Result ValidatePasswordLength()
 {
     var tmConfig = TMConfig.Current;
     var showDetailedErors = TMConfig.Current.showDetailedErrorMessages();
     var response = new ChangePassword_Result
     {
         Message =
             showDetailedErors
                 ? tmConfig.TMErrorMessages.PasswordLengthErrorMessage
                 : tmConfig.TMErrorMessages.General_PasswordChange_Error_Message,
         PasswordChanged = false
     };
     return response;
 }
Пример #4
0
 private static ChangePassword_Result CurrentPasswordDoNotMatchResponse()
 {
     var tmConfig = TMConfig.Current;
     var showDetailedErors = TMConfig.Current.showDetailedErrorMessages();
     var response = new ChangePassword_Result
     {
         Message =
             showDetailedErors
                 ? tmConfig.TMErrorMessages .CurrentPasswordDoNotMatch
                 : tmConfig.TMErrorMessages.General_PasswordChange_Error_Message,
         PasswordChanged = false
     };
     return response;
 }