示例#1
0
        public void serialize_to_bson()
        {
            var evt = new SampleAggregateCreated()
            {
                MessageId = Guid.Parse("fc3e5f0a-c4f0-47d5-91cf-a1c87fee600f")
            };

            evt.AssignIdForTest(_sampleAggregateId);

            var doc = evt.ToJson();

            Debug.WriteLine(doc);

            Assert.AreEqual(Expected, doc);
        }
 protected void When(SampleAggregateCreated evt)
 {
 }
示例#3
0
#pragma warning disable RCS1163 // Unused parameter.
            protected void When(SampleAggregateCreated evt)
            {
                // Method intentionally left empty.
            }