public void DeserializeToLogicalTypeWithDefault() { var writerSchemaString = @"{ ""type"": ""record"", ""name"": ""RecordWithOptionalLogicalType"", ""namespace"": ""Avro.Test.Specific.return"", ""fields"": [ ]}"; var writerSchema = Schema.Parse(writerSchemaString); Stream stream; serializeGeneric(writerSchemaString, GenericTests.MkRecord(new object[] { }, (RecordSchema)writerSchema), out stream, out _); RecordWithOptionalLogicalType output = deserialize <RecordWithOptionalLogicalType>(stream, writerSchema, RecordWithOptionalLogicalType._SCHEMA); Assert.AreEqual(output.x, new DateTime(1970, 1, 11)); }
public void GuidField() => GenericTests.GuidField(CreateDefaultContext());
public void GetValueString() { GenericTests.GetValue <string>(); }
public void LookupSingleEntityError() => GenericTests.LookupSingleEntityError(CreateDefaultContext());
public static void InlineFragementWithoutTypenameFieldWithoutOtherFields() => GenericTests.InlineFragementWithoutTypenameFieldWithoutOtherFields(CreateDefaultContext());
public static void FragementWithMultiLevelInheritance() => GenericTests.FragementWithMultiLevelInheritance(CreateDefaultContext());
public static void InlineFragements() => GenericTests.InlineFragements(CreateDefaultContext());
public void ByteArrayParameter() => GenericTests.ByteArrayParameter(CreateDefaultContext());
public void PostFieldSubQuery() => GenericTests.PostFieldSubQuery(CreateDefaultContext());
public void NestedEntityList() => GenericTests.NestedEntityList(CreateDefaultContext());
public void ListTypeIsList() => GenericTests.ListTypeIsList(CreateDefaultContext());
public void CustomFieldSubQueryUsingContext() => GenericTests.CustomFieldSubQueryUsingContext(CreateDefaultContext());
public void NoUserQueryReturnsNull() => GenericTests.NoUserQueryReturnsNull(CreateDefaultContext());
public void AliasOneField() => GenericTests.AliasOneField(CreateDefaultContext());
public void GetValueLong() { GenericTests.GetValue <long>(); }
public void GuidParameter() => GenericTests.GuidParameter(CreateDefaultContext());
public void EnumFieldQuery() => GenericTests.EnumFieldQuery(CreateDefaultContext());
public void TypeName() => GenericTests.TypeName(CreateDefaultContext());
public void ChildFieldWithParameters() => GenericTests.ChildFieldWithParameters(MemContext.CreateDefaultContext());
public void DateTimeFilter() => GenericTests.DateTimeFilter(CreateDefaultContext());
public static void InlineFragementWithListField() => GenericTests.InlineFragementWithListField(CreateDefaultContext());
public void EnumerableSubField() => GenericTests.EnumerableSubField(CreateDefaultContext());
public static void FragementWithoutTypenameField() => GenericTests.FragementWithoutTypenameField(CreateDefaultContext());
public void SimpleMutation() => GenericTests.SimpleMutation(CreateDefaultContext());
public static void FragementWithMultipleTypenameFieldsMixedWithInlineFragment() => GenericTests.FragementWithMultipleTypenameFieldsMixedWithInlineFragment(CreateDefaultContext());
public void MutationWithReturn() => GenericTests.MutationWithReturn(CreateDefaultContext());
public void NullPropagation() => GenericTests.NullPropagation(CreateDefaultContext());
public void GetValueInt() { GenericTests.GetValue <int>(); }