コード例 #1
0
        public void ApplyConfig(EventSourceConfiguration configuration, EventsourceDIContext diContext,
                                IStateEventMapping eventMapping, IDomainObjectRepository repo)
        {
            stateRuntime = new DomainObjectStateRuntime(this, diContext, eventMapping, configuration);

            domainObjectRepository = repo;
        }
コード例 #2
0
        public void ConventionWithInterfaceWasCalled()
        {
            DomainObjectStateRuntime sut = GetSut();

            var state = sut.State <TestState>(true);

            Assert.Equal(1, state.Counter);
        }
コード例 #3
0
 public void ApplyConfig(EventSourceConfiguration configuration)
 {
     stateRuntime = new DomainObjectStateRuntime(this, configuration);
 }