예제 #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 DomainObjectStateRuntime(IDomainObject domainObject, EventsourceDIContext diContext,
                                 IStateEventMapping mapper, EventSourceConfiguration config)
 {
     this.domainObject  = domainObject;
     this.diContext     = diContext;
     stateToEventMapper = mapper;
 }
예제 #3
0
 public FakeRepository(EventSourceConfiguration configuration, EventsourceDIContext diContext) : base(
         configuration, null, diContext, new StateEventMapping(), null)
 {
 }