Beispiel #1
0
        protected virtual IQuery GetQuery(ExecutionXml executionXml)
        {
            var builder = new QueryResolverArgsBuilder(ServiceLocator);

            builder.Setup(executionXml.Item, executionXml.Settings, Variables);
            builder.Build();

            var factory  = ServiceLocator.GetQueryResolverFactory();
            var resolver = factory.Instantiate(builder.GetArgs());
            var query    = resolver.Execute();

            return(query);
        }
Beispiel #2
0
        protected virtual IResultSetService InstantiateSystemUnderTest(ExecutionXml executionXml)
        {
            var queryArgsBuilder = new QueryResolverArgsBuilder(ServiceLocator);

            queryArgsBuilder.Setup(executionXml.Item, executionXml.Settings, Variables);
            queryArgsBuilder.Build();

            var factory  = ServiceLocator.GetResultSetResolverFactory();
            var resolver = factory.Instantiate(new QueryResultSetResolverArgs(queryArgsBuilder.GetArgs()));

            var builder = new ResultSetServiceBuilder();

            builder.Setup(resolver);
            var service = builder.GetService();

            return(service);
        }