public void TestUpdateSingleItem(Enums.ResourceType resourceType, string fieldName, WriteInvalidInput valueType, int expectedCode)
        {
            string resourceName = resourceType.ToResourceName();
            string fieldAlias   = resourceName + "." + fieldName;

            WriteInvalidHelper.UpdateSingleItem(resourceType, fieldAlias, (index) => GetInvalidFieldValue(resourceType, fieldName, valueType, index),
                                                expectedCode, records, true, 0, referenceRecords);
        }
Beispiel #2
0
        public void TestUpdateSingleItem(Enums.ResourceType resourceType, string fieldName)
        {
            string resourceName = resourceType.ToResourceName();
            string fieldAlias   = resourceName + "." + fieldName;

            WriteInvalidHelper.UpdateSingleItem(resourceType, fieldAlias, (index) => GetInvalidFieldValue(resourceType, fieldName, index),
                                                Enums.PublicAPIResultCode.InvalidParameterValue, records, false, 0, null);
        }
        public void TestUpdateSingleItem(Enums.ResourceType resourceType, string fieldValue, int expectedCode)
        {
            string fieldAlias = resourceType.ToResourceName() + "." + SystemTypeField.Owner;

            if (fieldValue == null)
            {
                WriteValidHelper.UpdateSingleItem(resourceType, fieldAlias, fieldValue, updateRecords);
            }
            else
            {
                WriteInvalidHelper.UpdateSingleItem(resourceType, fieldAlias, fieldValue, expectedCode, updateRecords);
            }
        }
        public void TestUpdateSingleItem(Enums.ResourceType resourceType, string fieldName, string fieldValue, int expectedCode)
        {
            string fieldAlias = resourceType.ToResourceName() + "." + fieldName;

            WriteInvalidHelper.UpdateSingleItem(resourceType, fieldAlias, fieldValue, expectedCode, updateRecords);
        }