コード例 #1
0
        public void ArrangeAndAct()
        {
            accountId = Guid.NewGuid();
            var account = new Account(accountId, 200);
            account.Debit(300);
            account.Debit(300);
            account.ClearEvents();
            account.Debit(300);

            events = account.UncommittedEvents.ToArray();
        }