示例#1
0
        private static TestCaseData AddBugSystemFields(TestCaseData testcase, Enums.ResourceType resourceType, SameResultSymbolType symbolType, string fieldName, char firstChar, char secondChar)
        {
            var telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };

            if (resourceType == Enums.ResourceType.Candidate)
            {
                testcase = AddBugTelephoneField(testcase, CommonConstant.TelephoneField[resourceType], symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
            }
            else if (resourceType == Enums.ResourceType.Client)
            {
                var clientBugChar = new char[] { ':', '/' };
                if (firstChar.EqualsToChars(clientBugChar) || secondChar.EqualsToChars(clientBugChar))
                {
                    testcase.SetBug("39491");
                }
                testcase = AddBugTelephoneField(testcase, CommonConstant.TelephoneField[resourceType], symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
            }
            else if (resourceType == Enums.ResourceType.Recruiter)
            {
                var recruiterBugChar = new char[] { '-', '-' };
                if (firstChar.EqualsToChars(recruiterBugChar) || secondChar.EqualsToChars(recruiterBugChar))
                {
                    testcase.SetBug("39491");
                }
                testcase = AddBugTelephoneField(testcase, CommonConstant.TelephoneField[resourceType], symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
            }
            return(testcase);
        }
示例#2
0
 private static TestCaseData AddBugTelephoneField(TestCaseData testcase, string[] fieldList, SameResultSymbolType symbolType, string fieldName, char firstChar, char secondChar, char[] telephoneBugSymbol)
 {
     if (fieldName.EqualsToStrings(fieldList))
     {
         if (symbolType == SameResultSymbolType.HalfWidthFullWidth && (firstChar.EqualsToChars(telephoneBugSymbol) || secondChar.EqualsToChars(telephoneBugSymbol)) || symbolType == SameResultSymbolType.Group3)
         {
             testcase.SetBug("39491");
         }
     }
     return(testcase);
 }
示例#3
0
        private static TestCaseData AddBugTelephoneUserField(TestCaseData testcase, SameResultSymbolType symbolType, HRBCClientPrivate.API.Field.FieldType fieldType, char firstChar, char secondChar, char[] telephoneBugSymbol)
        {
            if (fieldType == HRBCClientPrivate.API.Field.FieldType.Telephone)
            {
                if (symbolType == SameResultSymbolType.HalfWidthFullWidth && (firstChar.EqualsToChars(telephoneBugSymbol) || secondChar.EqualsToChars(telephoneBugSymbol)) || symbolType == SameResultSymbolType.Group3)
                {
                    testcase.SetBug("39491");
                }
            }
            return(testcase);

            throw new NotImplementedException();
        }
示例#4
0
 private static TestCaseData AddBugUserFields(TestCaseData testcase, Enums.ResourceType resourceType, SameResultSymbolType symbolType, HRBCClientPrivate.API.Field.FieldType fieldType, char firstChar, char secondChar)
 {
     char[] telephoneBugSymbol = new char[] { };
     if (resourceType == Enums.ResourceType.Client)
     {
         var clientBugChar = new char[] { ':', '/' };
         if (firstChar.EqualsToChars(clientBugChar) || secondChar.EqualsToChars(clientBugChar))
         {
             testcase.SetBug("39491");
         }
         telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };
         testcase           = AddBugTelephoneUserField(testcase, symbolType, fieldType, firstChar, secondChar, telephoneBugSymbol);
     }
     else if (resourceType == Enums.ResourceType.Process || resourceType == Enums.ResourceType.Contract || resourceType == Enums.ResourceType.Activity ||
              resourceType == Enums.ResourceType.Candidate || resourceType == Enums.ResourceType.Job || resourceType == Enums.ResourceType.Sales)
     {
         telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };
         testcase           = AddBugTelephoneUserField(testcase, symbolType, fieldType, firstChar, secondChar, telephoneBugSymbol);
     }
     else if (resourceType == Enums.ResourceType.Recruiter)
     {
         var recruiterBugChar = new char[] { '-', '-' };
         if (firstChar.EqualsToChars(recruiterBugChar) || secondChar.EqualsToChars(recruiterBugChar) || symbolType == SameResultSymbolType.Group3)
         {
             testcase.SetBug("39491");
         }
         telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };
         testcase           = AddBugTelephoneUserField(testcase, symbolType, fieldType, firstChar, secondChar, telephoneBugSymbol);
     }
     else if (resourceType == Enums.ResourceType.Resume)
     {
         telephoneBugSymbol = new char[] { '-', '+', '-' };
         testcase           = AddBugTelephoneUserField(testcase, symbolType, fieldType, firstChar, secondChar, telephoneBugSymbol);
     }
     return(testcase);
 }
示例#5
0
 private static TestCaseData AddBugApplicationFields(TestCaseData testcase, Enums.ResourceType resourceType, SameResultSymbolType symbolType, string fieldName, char firstChar, char secondChar)
 {
     char[] telephoneBugSymbol = new char[] { };
     if (resourceType == Enums.ResourceType.Client)
     {
         var clientBugChar = new char[] { ':', '/' };
         if (firstChar.EqualsToChars(clientBugChar) || secondChar.EqualsToChars(clientBugChar))
         {
             testcase.SetBug("39491");
         }
         telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };
         testcase           = AddBugTelephoneField(testcase, CommonConstant.ApplicationTelephoneField, symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
     }
     else if (resourceType == Enums.ResourceType.Process || resourceType == Enums.ResourceType.Contract || resourceType == Enums.ResourceType.Activity ||
              resourceType == Enums.ResourceType.Candidate || resourceType == Enums.ResourceType.Job || resourceType == Enums.ResourceType.Sales)
     {
         telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };
         testcase           = AddBugTelephoneField(testcase, CommonConstant.ApplicationTelephoneField, symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
     }
     else if (resourceType == Enums.ResourceType.Resume)
     {
         telephoneBugSymbol = new char[] { '-', '+', '-' };
         testcase           = AddBugTelephoneField(testcase, CommonConstant.ApplicationTelephoneField, symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
     }
     else
     {
         var recruiterBugChar = new char[] { '-', '-' };
         if (firstChar.EqualsToChars(recruiterBugChar) || secondChar.EqualsToChars(recruiterBugChar))
         {
             testcase.SetBug("39491");
         }
         telephoneBugSymbol = new char[] { '(', ')', '-', '+', '-' };
         testcase           = AddBugTelephoneField(testcase, CommonConstant.ApplicationTelephoneField, symbolType, fieldName, firstChar, secondChar, telephoneBugSymbol);
     }
     return(testcase);
 }