5 types derived from PocoWithPolymorphism
Shared.Tests (5)
JsonSchemaExporter\TestTypes.cs (5)
1090public class DerivedPocoNoDiscriminator : PocoWithPolymorphism 1095public class DerivedPocoStringDiscriminator : PocoWithPolymorphism 1100public class DerivedPocoIntDiscriminator : PocoWithPolymorphism 1105public class DerivedCollection : PocoWithPolymorphism, IEnumerable<int> 1111public class DerivedDictionary : PocoWithPolymorphism, IReadOnlyDictionary<string, int>
11 references to PocoWithPolymorphism
Shared.Tests (11)
JsonSchemaExporter\TestTypes.cs (11)
610yield return new TestData<PocoWithPolymorphism>( 611Value: new PocoWithPolymorphism.DerivedPocoStringDiscriminator { BaseValue = 42, DerivedValue = "derived" }, 613new PocoWithPolymorphism.DerivedPocoNoDiscriminator { BaseValue = 42, DerivedValue = "derived" }, 614new PocoWithPolymorphism.DerivedPocoIntDiscriminator { BaseValue = 42, DerivedValue = "derived" }, 615new PocoWithPolymorphism.DerivedCollection { BaseValue = 42 }, 616new PocoWithPolymorphism.DerivedDictionary { BaseValue = 42 }, 1132public PocoWithPolymorphism PolymorphicValue { get; set; } = new PocoWithPolymorphism.DerivedPocoNoDiscriminator { DerivedValue = "derived" }; 1133public PocoWithPolymorphism.DerivedPocoNoDiscriminator DerivedValue1 { get; set; } = new() { DerivedValue = "derived" }; 1134public PocoWithPolymorphism.DerivedPocoStringDiscriminator DerivedValue2 { get; set; } = new() { DerivedValue = "derived" }; 1277[JsonSerializable(typeof(PocoWithPolymorphism))]