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;
		}
Exemple #2
0
        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);
        }