Esempio n. 1
0
        public WhenVisiting()
        {
            TestDomainObject sut = GetSut("11");

            var @event = new TestEvent();


            sut.ApplyEvent(@event);

            sut.RaiseEvent();
            VisitorState            = sut.State <SampleVisitor>();
            VisitorStateWithSuppres = sut.State <SampleVisitor>(true);
        }
Esempio n. 2
0
        public WhenVisiting()
        {
            TestDomainObject sut = GetSut("11");

            var @event = new TestEvent();
            var events = new List <IEvent>
            {
                @event
            };

            sut.ApplyEvents(events, null);
            sut.ApplyConfig(new EventSourceConfiguration
            {
                StateActivator = new ActivatorDomainObjectActivator()
            });

            sut.RaiseEvent();
            VisitorState            = sut.State <SampleVisitor>();
            VisitorStateWithSuppres = sut.State <SampleVisitor>(true);
        }