コード例 #1
0
        public void Aggregate_command_raising_event___impl_test()
        {
            var aggregate = new TestAggregate();

            Assert.AreEqual(0, aggregate.Number);

            aggregate.IncreaseNumber(2);
            aggregate.IncreaseNumber(1);

            Assert.AreEqual(3, aggregate.Number);
        }