public void TestSingleItemApplicationField(Enums.ResourceType resourceType) { string fieldAlias1 = resourceType.ToResourceName() + "." + AppField1; string fieldAlias2 = resourceType.ToResourceName() + "." + AppField2; BulkWriteHelper.ExecuteTestSingleItem(resourceType, fieldAlias1, fieldAlias2, Util.ToString(DateTime.Now), referenceRecords, false, cleaner); }
public void TestSingleItemSystemField(Enums.ResourceType resourceType, string fieldName1, string fieldName2) { string fieldAlias1 = resourceType.ToResourceName() + "." + fieldName1; string fieldAlias2 = resourceType.ToResourceName() + "." + fieldName2; BulkWriteHelper.ExecuteTestSingleItem(resourceType, fieldAlias1, fieldAlias2, Util.ToString(DateTime.Now), referenceRecords, true, cleaner); }
public void TestSingleItemUserField(Enums.ResourceType resourceType) { Assume.That(customFields.Data, Is.Not.Null.And.Not.Empty, "Cannot create a user field!"); string fieldAlias1 = customFields.Data[$"{resourceType}-{Field1}"].Field.ToAlias(); string fieldAlias2 = customFields.Data[$"{resourceType}-{Field2}"].Field.ToAlias(); BulkWriteHelper.ExecuteTestSingleItem(resourceType, fieldAlias1, fieldAlias2, Util.ToString(DateTime.Now), referenceRecords, false, cleaner); }
public void TestSingleItemSystemField(Enums.ResourceType resourceType, string fieldName1, string fieldName2) { string fieldAlias1 = resourceType.ToResourceName() + "." + fieldName1; string fieldAlias2 = resourceType.ToResourceName() + "." + fieldName2; if (resourceType == Enums.ResourceType.Process) { startIndex += 2; BulkWriteHelper.ExecuteTestSingleItem(resourceType, fieldAlias1, fieldAlias2, (fieldAlias, index) => GetFieldValueSingleItem(fieldAlias, index), referenceRecords, true, cleaner, startIndex - 2); } else { BulkWriteHelper.ExecuteTestSingleItem(resourceType, fieldAlias1, fieldAlias2, (fieldAlias, index) => GetFieldValueSingleItem(fieldAlias, index), referenceRecords, true, cleaner); } }