コード例 #1
0
        public static async Task <TestCaseClient> GetRootTestCase(TestSessionClient session, CancellationToken cancellationToken)
        {
            var command = new GetRootTestCaseCommand();
            var proxy   = await command.Send(session, null, cancellationToken);

            return(await TestCaseClient.FromProxy(proxy, cancellationToken));
        }
コード例 #2
0
        public static async Task <TestCase> ResolveFromPath(
            TestSessionClient session, XElement path, CancellationToken cancellationToken)
        {
            var command = new ResolveFromPathCommand();
            var proxy   = await command.Send(session, path, cancellationToken);

            return(await TestCaseClient.FromProxy(proxy, cancellationToken));
        }