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

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

            Feature.AddReducer(new IncrementCounterReducer());
        }
Esempio 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();
        }