Example #1
0
        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));
        }
Example #2
0
 public void GuidField() => GenericTests.GuidField(CreateDefaultContext());
Example #3
0
 public void GetValueString()
 {
     GenericTests.GetValue <string>();
 }
Example #4
0
 public void LookupSingleEntityError() => GenericTests.LookupSingleEntityError(CreateDefaultContext());
Example #5
0
 public static void InlineFragementWithoutTypenameFieldWithoutOtherFields() => GenericTests.InlineFragementWithoutTypenameFieldWithoutOtherFields(CreateDefaultContext());
Example #6
0
 public static void FragementWithMultiLevelInheritance() => GenericTests.FragementWithMultiLevelInheritance(CreateDefaultContext());
Example #7
0
 public static void InlineFragements() => GenericTests.InlineFragements(CreateDefaultContext());
Example #8
0
 public void ByteArrayParameter() => GenericTests.ByteArrayParameter(CreateDefaultContext());
Example #9
0
 public void PostFieldSubQuery() => GenericTests.PostFieldSubQuery(CreateDefaultContext());
Example #10
0
 public void NestedEntityList() => GenericTests.NestedEntityList(CreateDefaultContext());
Example #11
0
 public void ListTypeIsList() => GenericTests.ListTypeIsList(CreateDefaultContext());
Example #12
0
 public void CustomFieldSubQueryUsingContext() => GenericTests.CustomFieldSubQueryUsingContext(CreateDefaultContext());
Example #13
0
 public void NoUserQueryReturnsNull() => GenericTests.NoUserQueryReturnsNull(CreateDefaultContext());
Example #14
0
 public void AliasOneField() => GenericTests.AliasOneField(CreateDefaultContext());
Example #15
0
 public void GetValueLong()
 {
     GenericTests.GetValue <long>();
 }
Example #16
0
 public void GuidParameter() => GenericTests.GuidParameter(CreateDefaultContext());
Example #17
0
 public void EnumFieldQuery() => GenericTests.EnumFieldQuery(CreateDefaultContext());
Example #18
0
 public void TypeName() => GenericTests.TypeName(CreateDefaultContext());
Example #19
0
 public void ChildFieldWithParameters() => GenericTests.ChildFieldWithParameters(MemContext.CreateDefaultContext());
Example #20
0
 public void DateTimeFilter() => GenericTests.DateTimeFilter(CreateDefaultContext());
Example #21
0
 public static void InlineFragementWithListField() => GenericTests.InlineFragementWithListField(CreateDefaultContext());
Example #22
0
 public void EnumerableSubField() => GenericTests.EnumerableSubField(CreateDefaultContext());
Example #23
0
 public static void FragementWithoutTypenameField() => GenericTests.FragementWithoutTypenameField(CreateDefaultContext());
Example #24
0
 public void SimpleMutation() => GenericTests.SimpleMutation(CreateDefaultContext());
Example #25
0
 public static void FragementWithMultipleTypenameFieldsMixedWithInlineFragment() => GenericTests.FragementWithMultipleTypenameFieldsMixedWithInlineFragment(CreateDefaultContext());
Example #26
0
 public void MutationWithReturn() => GenericTests.MutationWithReturn(CreateDefaultContext());
Example #27
0
 public void NullPropagation() => GenericTests.NullPropagation(CreateDefaultContext());
Example #28
0
 public void GetValueInt()
 {
     GenericTests.GetValue <int>();
 }