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

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

            sut.ApplyEvents(events);

            sut.RaiseEvent();
            VisitorState            = sut.State <SampleVisitor>();
            VisitorStateWithSuppres = sut.State <SampleVisitor>(true);
        }
Exemplo 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);
        }