public VerificationManager(IVerificationFacade verificationFacade, IHasher hasher, IResultParser resultParser, IPayExSettings payExSettings) { _verificationFacade = verificationFacade; _hasher = hasher; _resultParser = resultParser; _payExSettings = payExSettings; }
public PaymentManager(IOrderFacade orderFacade, IHasher hasher, IResultParser resultParser, IPayExSettings payExSettings) { _orderFacade = orderFacade; _hasher = hasher; _resultParser = resultParser; _payExSettings = payExSettings; }
public void InsertRunTimes(IResultParser inputFile, XDocument document) { var timesElement = document.Root.Element(TrxHelper.XmlNamespace + "Times"); timesElement.SetAttributeValue("creation", inputFile.ExecutionTime); timesElement.SetAttributeValue("queuing", inputFile.ExecutionTime); timesElement.SetAttributeValue("start", inputFile.ExecutionTime); timesElement.SetAttributeValue("finish", inputFile.ExecutionTime + inputFile.Duration); }
public ResultUpdater(IResultParser parser) { watchers = new Dictionary <string, FileSystemWatcher>(); this.parser = parser; OnResultsChanged += (s, e) => { }; OnErrorOccured += (s, e) => { }; }
public void SetUp() { mocks = new MockRepository(); browser = mocks.DynamicMock <IWebBrowser>(); resultParser = mocks.DynamicMock <IResultParser>(); resultListener = mocks.DynamicMock <IResultListener>(); fixtureRunner = new FixtureRunner(resultListener, browser, resultParser); }
public Jenkins(Harness harness, IProcessManager processManager, IResultParser resultParser, ITunnelBore tunnelBore) { this.processManager = processManager ?? throw new ArgumentNullException(nameof(processManager)); this.TunnelBore = tunnelBore ?? throw new ArgumentNullException(nameof(tunnelBore)); Harness = harness ?? throw new ArgumentNullException(nameof(harness)); Simulators = new SimulatorLoader(processManager); Devices = new HardwareDeviceLoader(processManager); testSelector = new TestSelector(this, processManager, new GitHub(harness, processManager)); testVariationsFactory = new TestVariationsFactory(this, processManager); DeviceLoader = new JenkinsDeviceLoader(Simulators, Devices, Logs); resourceManager = new ResourceManager(); htmlReportWriter = new HtmlReportWriter(jenkins: this, resourceManager: resourceManager, resultParser: resultParser); markdownReportWriter = new MarkdownReportWriter(); }
public void InsertEnvironmentInfo(IResultParser inputFile, XDocument document) { string fullTestName = string.Format("{0}@{1} {2}", inputFile.TestName, inputFile.ComputerName, inputFile.ExecutionTime); var testRunId = TrxHelper.GuidFromString(fullTestName); var rootElement = document.Root; rootElement.SetAttributeValue("id", testRunId); rootElement.SetAttributeValue("runUser", inputFile.UserName); rootElement.SetAttributeValue("name", fullTestName); var deploymentElement = document.Root .Element(TrxHelper.XmlNamespace + "TestSettings") .Element(TrxHelper.XmlNamespace + "Deployment"); deploymentElement.SetAttributeValue("runDeploymentRoot", testRunId); }
public void InsertResultSummary(IResultParser inputFile, XDocument document) { var resultSummaryElement = document.Root.Element(TrxHelper.XmlNamespace + "ResultSummary"); resultSummaryElement.SetAttributeValue("outcome", inputFile.Result.ToString()); var notExecutedTests = inputFile.TotalTests - inputFile.ExecutedTests; var countersElement = resultSummaryElement.Element(TrxHelper.XmlNamespace + "Counters"); countersElement.SetAttributeValue("total", inputFile.TotalTests); countersElement.SetAttributeValue("notExecuted", notExecutedTests); countersElement.SetAttributeValue("failed", inputFile.FailedTests); countersElement.SetAttributeValue("inconclusive", inputFile.InconclusiveTests); countersElement.SetAttributeValue("executed", inputFile.ExecutedTests); countersElement.SetAttributeValue("passed", inputFile.PassedTests); countersElement.SetAttributeValue("completed", inputFile.ExecutedTests); }
public XDocument Generate(IResultParser inputFile) { XDocument trxDocument = GetBaseTrxDocument(); var basicTransformer = new BasicDataTransformer(); basicTransformer.InsertEnvironmentInfo(inputFile, trxDocument); basicTransformer.InsertRunTimes(inputFile, trxDocument); basicTransformer.InsertResultSummary(inputFile, trxDocument); var testCaseTransformer = new TestCaseTransformer(); foreach (var testCase in inputFile.TestCases) { testCaseTransformer.InsertTestCase(testCase, trxDocument); } return trxDocument; }
public void SetUp() { _client = MockRepository.GenerateMock<IAspClient>(); _resultParser = MockRepository.GenerateStub<IResultParser>(); }
internal AspRunner(IAspClient client, IResultParser resultParser) { _client = client; _resultParser = resultParser; }