private static IObject CreateRow([NotNull] ObjectClassMock mockObjectClass, int oid, int urlFieldIndex, string url) { IObject result = mockObjectClass.CreateObject(oid); result.Value[urlFieldIndex] = (object) url ?? DBNull.Value; return result; }
private static IObject CreateRow([NotNull] ObjectClassMock mockObjectClass, int oid, int textFieldIndex, string textFieldValue) { IObject result = mockObjectClass.CreateObject(oid); result.Value[textFieldIndex] = (object)textFieldValue ?? DBNull.Value; return(result); }