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); }
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); }