private IMobileUpdateProcessor MobileStreamingProcessorStarted()
        {
            IMobileUpdateProcessor processor = new MobileStreamingProcessor(configBuilder.Build(),
                                                                            mockFlagCacheMgr, user, eventSourceFactory.Create());

            processor.Start();
            return(processor);
        }
Beispiel #2
0
        private IMobileUpdateProcessor MobileStreamingProcessorStarted()
        {
            mockEventSource    = new EventSourceMock();
            eventSourceFactory = new TestEventSourceFactory(mockEventSource);
            // stub with an empty InMemoryCache, so Stream updates can be tested
            mockFlagCacheMgr = new MockFlagCacheManager(new UserFlagInMemoryCache());
            var config = Configuration.Default("someKey")
                         .WithConnectionManager(new MockConnectionManager(true))
                         .WithIsStreamingEnabled(true)
                         .WithFlagCacheManager(mockFlagCacheMgr);

            var processor = Factory.CreateUpdateProcessor(config, user, mockFlagCacheMgr, eventSourceFactory.Create());

            processor.Start();
            return(processor);
        }