public WhenVisiting() { TestDomainObject sut = GetSut("11"); var @event = new TestEvent(); sut.ApplyEvent(@event); sut.RaiseEvent(); VisitorState = sut.State <SampleVisitor>(); VisitorStateWithSuppres = sut.State <SampleVisitor>(true); }
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); }