예제 #1
0
        public void It_retains_emitted_events()
        {
            var a = new MyAggregate();

            a.Do();

            Assert.AreEqual(1, a.Dehydrate().Count());
        }
예제 #2
0
        public void It_applies_emitted_event()
        {
            var a = new MyAggregate();

            a.Do();

            Assert.IsTrue(a.EventApplied);
        }
예제 #3
0
        public void It_runs_the_event_through_ports()
        {
            var a = new MyAggregate(new MyPort());

            a.Do();
            var messages = a.ProcessPorts();

            Assert.AreEqual(1, messages.Count());
        }