Ejemplo n.º 1
0
        public Dispatch()
        {
            StartEvent = new ManualResetEvent(false);
            Store      = new TestStore();

            Feature = new CounterFeature();
            Store.AddFeature(Feature);

            Feature.AddReducer(new IncrementCounterReducer());
        }
Ejemplo n.º 2
0
        public Dispatch()
        {
            StartEvent = new ManualResetEvent(false);
            var storeInitializer = new TestStoreInitializer();

            Store = new Store(storeInitializer);
            Store.Initialize();

            Feature = new CounterFeature();
            Store.AddFeature(Feature);

            Feature.AddReducer(new IncrementCounterReducer());
            storeInitializer.Complete();
        }