示例#1
0
            protected override Task <ObjectProxy> Run(
                Connection connection, RemoteTestSession proxy, object argument, CancellationToken cancellationToken)
            {
                var servant = new TestCaseServant((ServerConnection)connection, proxy.Servant, proxy.Servant.RootTestCase);

                return(Task.FromResult <ObjectProxy> (servant));
            }
示例#2
0
        public async Task <IEnumerable <TestCaseServant> > GetChildren(CancellationToken cancellationToken)
        {
            if (children != null)
            {
                return(children);
            }

            children = new List <TestCaseServant> ();
            foreach (var child in await Test.GetChildren(cancellationToken))
            {
                var childServant = new TestCaseServant((ServerConnection)Connection, Session, child);
                children.Add(childServant);
            }

            return(children);
        }
示例#3
0
        public async Task <IEnumerable <TestCaseServant> > GetParameters(CancellationToken cancellationToken)
        {
            if (parameters != null)
            {
                return(parameters);
            }

            parameters = new List <TestCaseServant> ();
            foreach (var parameter in await Session.LocalSession.GetTestParameters(Test, cancellationToken))
            {
                var parameterServant = new TestCaseServant((ServerConnection)Connection, Session, parameter);
                parameters.Add(parameterServant);
            }

            return(parameters);
        }