public void TestCreateListItem(Enums.ResourceType resourceType, string fieldName, WriteInvalidInput valueType, int expectedCode) { string resourceName = resourceType.ToResourceName(); string fieldAlias = resourceName + "." + fieldName; WriteInvalidHelper.CreateListItem(resourceType, fieldAlias, (index) => GetInvalidFieldValue(resourceType, fieldName, valueType, index), expectedCode, cleaner, referenceRecords, true); }
public void TestCreateListItem(Enums.ResourceType resourceType, string fieldName) { string resourceName = resourceType.ToResourceName(); string fieldAlias = resourceName + "." + fieldName; WriteInvalidHelper.CreateListItem(resourceType, fieldAlias, (index) => GetInvalidFieldValue(resourceType, fieldName, index), Enums.PublicAPIResultCode.InvalidParameterValue, cleaner, referenceRecords, false); }
public void TestCreateListItem(Enums.ResourceType resourceType, string fieldName, string fieldValue, int expectedCode) { string fieldAlias = resourceType.ToResourceName() + "." + fieldName; if (fieldValue == null) { WriteValidHelper.CreateListItem(resourceType, fieldAlias, fieldValue, cleaner, records); } else { WriteInvalidHelper.CreateListItem(resourceType, fieldAlias, fieldValue, expectedCode, cleaner, records); } }
public void TestCreateListItem(Enums.ResourceType resourceType, string fieldValue, int expectedCode) { string fieldAlias = resourceType.ToResourceName() + "." + SystemTypeField.Owner; WriteInvalidHelper.CreateListItem(resourceType, fieldAlias, fieldValue, expectedCode, cleaner, records); }