예제 #1
0
        public void Aggegrate_Should_Load_Events_From_History()
        {
            var aggregate = new TestAggregateRoot();

            var history = new List <object>
            {
                new TestEventV1(),
                new AnotherTestEventV1()
            };

            aggregate.LoadsFromHistory(history);

            Assert.That(aggregate.TestEventFired, Is.True);
            Assert.That(aggregate.AnotherTestEventFired, Is.True);
        }