コード例 #1
0
        public void ConventionWithInterfaceWasCalled()
        {
            DomainObjectStateRuntime sut = GetSut();

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

            Assert.Equal(1, state.Counter);
        }
コード例 #2
0
 public T State <T>() where T : StateBase, new()
 {
     return(stateRuntime.State <T>(includeUncommittedStreamsDefault));
 }