public void ApplyConfig(EventSourceConfiguration configuration, EventsourceDIContext diContext, IStateEventMapping eventMapping, IDomainObjectRepository repo) { stateRuntime = new DomainObjectStateRuntime(this, diContext, eventMapping, configuration); domainObjectRepository = repo; }
public DomainObjectStateRuntime(IDomainObject domainObject, EventsourceDIContext diContext, IStateEventMapping mapper, EventSourceConfiguration config) { this.domainObject = domainObject; this.diContext = diContext; stateToEventMapper = mapper; }
public FakeRepository(EventSourceConfiguration configuration, EventsourceDIContext diContext) : base( configuration, null, diContext, new StateEventMapping(), null) { }