private void ReadFailResourceSystemField(Enums.ResourceType resourceType, string fieldName, string condition, ResourceInvalidInput inputType)
        {
            ulong  tmpValue       = 0;
            ulong  defaultUser    = 1;
            string fieldValue     = string.Empty;
            ulong  numberNotExist = 9000554554;

            switch (fieldName)
            {
            case SystemTypeField.Id:
                tmpValue = records.Data[resourceType.ToPrivateEnum() + "0"].Id;
                break;

            case SystemTypeField.Owner:
            case SystemTypeField.RegisteredBy:
            case SystemTypeField.UpdatedBy:
                tmpValue = defaultUser;
                break;

            case SystemTypeField.Client:
                tmpValue = records.Data[Enums.ResourceType.Client.ToPrivateEnum() + "0"].Id;
                break;

            case SystemTypeField.Candidate:
                tmpValue = records.Data[Enums.ResourceType.Candidate.ToPrivateEnum() + "0"].Id;
                break;

            case SystemTypeField.Contract:
                tmpValue = records.Data[Enums.ResourceType.Contract.ToPrivateEnum() + "0"].Id;
                break;

            case SystemTypeField.Job:
                tmpValue = records.Data[Enums.ResourceType.Job.ToPrivateEnum() + "0"].Id;
                break;

            case SystemTypeField.Recruiter:
                tmpValue = records.Data[Enums.ResourceType.Recruiter.ToPrivateEnum() + "0"].Id;
                break;

            case SystemTypeField.Resume:
                tmpValue = records.Data[Enums.ResourceType.Client.ToPrivateEnum() + "0"].Id;
                break;
            }

            //Following invalid value of test cases
            switch (inputType)
            {
            case ResourceInvalidInput.ValidNumberInHex:
                fieldValue = "0x" + tmpValue.ToString("X");
                break;

            case ResourceInvalidInput.InvalidNumberInHex:
                fieldValue = "0x" + numberNotExist.ToString("X");
                break;

            case ResourceInvalidInput.ValidNumberInE:
                fieldValue = Util.ToExponential(tmpValue.ToString());
                break;

            case ResourceInvalidInput.InvalidNumberInE:
                fieldValue = Util.ToExponential(numberNotExist.ToString());
                break;

            default:
                fieldValue = FieldValueMapperSearch.ResourceInput[inputType];
                break;
            }

            string fieldAlias      = $"{resourceType.ToResourceName()}.{fieldName}";
            string conditionFormat = $"{fieldAlias}:{condition.ToLowerString()}={fieldValue}";

            SearchHelper.ReadFailed(resourceType, fieldAlias, conditionFormat);
        }
 public void TestResourceSystemFieldSearch(Enums.ResourceType resourceType, string fieldName, string condition, ResourceInvalidInput inputType)
 {
     ReadFailResourceSystemField(resourceType, fieldName, condition, inputType);
 }