Esempio n. 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());
        }
        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());
        }