|
| 1 | +using System.Collections.Generic; |
| 2 | + |
| 3 | +namespace Open.Serialization.Tests |
| 4 | +{ |
| 5 | + public class SampleModel |
| 6 | + { |
| 7 | + public static IList<decimal?> DecimalList = new decimal?[] { 3.45678m, 45.6789m, null }; |
| 8 | + |
| 9 | + public static IDictionary<string, decimal?> DecimalLookup { get; set; } = new SortedDictionary<string, decimal?> { { "NumberOne", 1.2345m }, { "NumberTwo", 2345.6m } }; |
| 10 | + |
| 11 | + public static IDictionary<string, double?> DoubleLookup { get; set; } = new SortedDictionary<string, double?> { { "NumberOne", 1.2345 }, { "NumberTwo", 2345.6 } }; |
| 12 | + |
| 13 | + public int IntegerValue { get; set; } = 11; |
| 14 | + |
| 15 | + public double DoubleValue { get; set; } = 1.2345678901234567891234; |
| 16 | + public decimal DecimalValue1 { get; set; } = 1.2345678901234567891234m; |
| 17 | + |
| 18 | + public decimal DecimalValue2 { get; set; } = 1.2345000m; |
| 19 | + public decimal DecimalValue3 { get; set; } = 11.000m; |
| 20 | + |
| 21 | + public string StringValue { get; set; } = "Hello"; |
| 22 | + public string StringValueNull { get; set; } = null; |
| 23 | + |
| 24 | + public int? NullableIntegerValue { get; set; } = 11; |
| 25 | + public int? NullableIntegerNull { get; set; } = null; |
| 26 | + |
| 27 | + public double? NullableDoubleNull { get; set; } = null; |
| 28 | + |
| 29 | + public double? NullableDoubleValue { get; set; } = 1.2345678901234567891234; |
| 30 | + public decimal? NullableDecimalValue { get; set; } = 1.2345678901234567891234m; |
| 31 | + public decimal? NullableDecimalNull { get; set; } = null; |
| 32 | + |
| 33 | + public SampleModel Child { get; set; } |
| 34 | + |
| 35 | + public static readonly SampleModel Instance = new SampleModel() { Child = new SampleModel() }; |
| 36 | + } |
| 37 | +} |
0 commit comments