public void ItReturnsTheParametersFromThePromptService2()
        {
            const string promptName = "Prompt Name";
            const string path = "Path";
            const string promptReportName = "Prompt Report Name";
            var parmaterValues = A.Array(A.ParameterValue().Build(), A.ParameterValue().Build());
            var parameters = A.Array(A.ReportParameter().Build(), A.ReportParameter().Build());
            var executionInfo = new ExecutionInfo2 { Parameters = parameters };

            _promptReportNameParser
                .Setup(p => p.Parse(promptName))
                .Returns(promptReportName);

            _reportServerFolder
                .Setup(f => f.GetFullPathFor(promptReportName))
                .Returns(path);

            _reportExecutionService
                .Setup(s => s.SetExecutionParameters2(parmaterValues, null))
                .Returns(executionInfo);

            var serviceParameters = _parameterSerivce.GetParametersFor(promptName, parmaterValues);

            _reportExecutionService.Verify(s => s.LoadReport2(path, null), Times.Exactly(1));

            Assert.AreEqual(parameters, serviceParameters);
        }
        public void ItGetsTheParametersFromTheReportExecutionServiceUsingThePath()
        {
            const string path = "Path";

            var serviceParameters = A.Array(A.ReportParameter().Build(), A.ReportParameter().Build());
            var exectuionInfo = new ExecutionInfo2 {Parameters = serviceParameters};

            _reportExecutionService.Setup(s => s.LoadReport2(path, null)).Returns(exectuionInfo);

            var parameters = _parameterService.GetParametersFor(path);

            Assert.AreEqual(serviceParameters, parameters);
        }