public void TestSearchOrderField(Enums.ResourceType resourceType, List <string> fieldsName, List <string> fieldValues, string order) { List <WriteResultItem> ids = FieldHelper.CreateOrderInstance(records, cleaner, resourceType, fieldsName, fieldValues); //Read & verify the field's value DateTimeValidator.VerifyOrderFieldDate(resourceType, fieldsName, fieldValues, order, ids); }
public void TestSearchOrderField(Enums.ResourceType resourceType, List <string> fieldValues, string order) { //Check registered application field FieldHelper.CheckRegisteredField(readFields, resourceType, fieldsName.First()); FieldHelper.CheckRegisteredField(readFields, resourceType, fieldsName.Last()); List <WriteResultItem> ids = FieldHelper.CreateOrderInstance(records, cleaner, resourceType, fieldsName, fieldValues); //Read & verify the field's value DateTimeValidator.VerifyOrderFieldDate(resourceType, fieldsName, fieldValues, order, ids); }
public void TestSearchOrderField(Enums.ResourceType resourceType, List <string> fieldValues, string order) { Assume.That(customFields.Data, Is.Not.Null, "HrbcFieldCreator cannot create custom fields!"); string fieldName1 = customFields.Data[$"{resourceType}-{Fields.First()}"].Name; string fieldName2 = customFields.Data[$"{resourceType}-{Fields.Last()}"].Name; string msgError = "Cannot create a user field for " + resourceType; Assume.That(fieldName1, Is.Not.Null.And.Not.Empty, msgError); Assume.That(fieldName2, Is.Not.Null.And.Not.Empty, msgError); List <string> fieldsName = new List <string> { fieldName1, fieldName2 }; List <WriteResultItem> ids = FieldHelper.CreateOrderInstance(records, cleaner, resourceType, fieldsName, fieldValues); //Read & verify the field's value DateTimeValidator.VerifyOrderFieldDate(resourceType, fieldsName, fieldValues, order, ids); }