Execute() private method

private Execute ( ) : void
return void
Beispiel #1
0
        internal static ITestResult SetTestResult(string testResultName, string testResultId)
        {
            GetNewTestSuite("name", "id", "description");

            var cmdlet = new SetTmxCurrentTestResultCommand();

            if (!string.IsNullOrEmpty(testResultName) &&
                         0 < testResultName.Length) {
                
                cmdlet.TestResultName = testResultName;
            }
            
            if (!string.IsNullOrEmpty(testResultId) &&
                         0 < testResultId.Length) {
                
                cmdlet.Id = testResultId;
            }

            var command = new TmxSetCurrentTestResultCommand(cmdlet);
            command.Execute();

            return TestData.CurrentTestResult;
        }