public void TestSearchField(Enums.ResourceType resourceType, string fieldName, List <string> fieldValues, string condition) { string resourceName = resourceType.ToResourceName(); string fieldAlias = $"{resourceName}.{fieldName}"; Dictionary <string, string> parameters = FieldHelper.CreateSearchInstance(records, cleaner, resourceType, fieldAlias, fieldValues, condition); //Read & verify the field's value DateTimeValidator.VerifySingleSearchFieldDate(resourceType, parameters, false); }
public void TestSearchField(Enums.ResourceType resourceType, List <string> fieldValues, string condition) { string resourceName = resourceType.ToResourceName(); string fieldAlias = customFields.Data[$"{resourceType}-Field"].Field.ToAlias(); Assume.That(fieldAlias, Is.Not.Null.And.Not.Empty, "Cannot create a user field for " + resourceName); Dictionary <string, string> parameters = FieldHelper.CreateSearchInstance(records, cleaner, resourceType, fieldAlias, fieldValues, condition); //Read & verify the field's value DateTimeValidator.VerifySingleSearchFieldDate(resourceType, parameters); }
public void TestSearchField(Enums.ResourceType resourceType, List <string> fieldValues, string condition) { string resourceName = resourceType.ToResourceName(); string fieldAlias = $"{resourceName}.{FieldHelper.AppDateField1}"; //Check registered application field FieldHelper.CheckRegisteredField(readFields, resourceType, FieldHelper.AppDateField1); Dictionary <string, string> parameters = FieldHelper.CreateSearchInstance(records, cleaner, resourceType, fieldAlias, fieldValues, condition); //Read & verify the field's value DateTimeValidator.VerifySingleSearchFieldDate(resourceType, parameters); }
public void TestSearchField(Enums.ResourceType resourceType, string fieldName, string condition) { string fieldAlias = $"{resourceType.ToResourceName()}.{fieldName}"; Dictionary <string, string> parameters = new Dictionary <string, string>() { { DateTimeValidator.FieldAlias1, fieldAlias }, { DateTimeValidator.Condition1, condition }, { DateTimeValidator.ConditionValue1, testData.Random() }, { DateTimeValidator.ConditionValue2, testData.Random() }, }; //Read & verify the field's value DateTimeValidator.VerifySingleSearchFieldDate(resourceType, parameters, false); }