コード例 #1
0
        public void SendTestCaseFinished(ScenarioInfo scenarioInfo, TestResult testResult)
        {
            var actualPickleId = _fieldValueProvider.GetTestCaseFinishedPickleId(scenarioInfo);
            var nowDateAndTime = _fieldValueProvider.GetTestCaseFinishedTime();

            var testCaseFinishedMessageResult = _cucumberMessageFactory.BuildTestCaseFinishedMessage(actualPickleId, nowDateAndTime, testResult);
            var wrapper = _cucumberMessageFactory.BuildWrapperMessage(testCaseFinishedMessageResult);

            SendMessageOrThrowException(wrapper);
        }
コード例 #2
0
        public void SendTestCaseFinished(ScenarioInfo scenarioInfo, TestResult testResult)
        {
            if (!AnyReceivers)
            {
                return;
            }

            var actualPickleId = _fieldValueProvider.GetTestCaseFinishedPickleId(scenarioInfo);
            var nowDateAndTime = _fieldValueProvider.GetTestCaseFinishedTime();

            var testCaseFinishedMessageResult = _cucumberMessageFactory.BuildTestCaseFinishedMessage(actualPickleId, nowDateAndTime, testResult);
            var envelope = _cucumberMessageFactory.BuildEnvelopeMessage(testCaseFinishedMessageResult);

            SendMessageOrThrowException(envelope);
        }