private static QueryEngineRegistry CreateRegistry() { var parent = new MockQueryEngineRegistry(); var provider = new MockReactiveEngineProvider(parent); provider.CreateStream(new Uri(Keys[0]), Expressions[0], null); provider.DefineObservable(new Uri(Keys[1]), Expressions[1], null); provider.DefineObserver(new Uri(Keys[2]), Expressions[2], null); provider.DefineStreamFactory(new Uri(Keys[3]), Expressions[3], null); provider.CreateSubscription(new Uri(Keys[4]), Expressions[4], null); provider.CreateSubscription(new Uri(Keys[5]), Expressions[5], null); provider.CreateStream(new Uri(Keys[6]), Expressions[6], null); provider.CreateStream(new Uri(Keys[7]), Expressions[7], null); return(new QueryEngineRegistry(parent)); }
private static IReactiveEngineProvider CreateEngineProvider(bool operatorContext = false) { var registry = new MockQueryEngineRegistry(); return(operatorContext ? new MockReactiveEngineProvider(registry, new OperatorContextRegistryQueryProvider(registry)) : new MockReactiveEngineProvider(registry)); }