コード例 #1
0
        static void AssertEventEntity(int version, EventEntity actual)
        {
            var expected = new
            {
                RowKey     = version.FormatEventRowKey(),
                Properties = EventProperties.From(new Dictionary <string, EntityProperty>
                {
                    { "Type", new EntityProperty("StreamChanged") },
                    { "Data", new EntityProperty("{}") },
                }),
                Version = version,
            };

            actual.ShouldMatch(expected.ToExpectedObject());
        }
コード例 #2
0
        static void AssertEventEntity(int version, EventEntity actual)
        {
            var expected = new
            {
                RowKey = version.FormatEventRowKey(),
                Properties = EventProperties.From(new Dictionary<string, EntityProperty>
                {
                    {"Type", new EntityProperty("StreamChanged")},
                    {"Data", new EntityProperty("{}")},
                }),
                Version = version,
            };

            actual.ShouldMatch(expected.ToExpectedObject());
        }