예제 #1
0
        public object RunScript(ScriptFile scriptFile)
        {
            var script = this._loadScript(scriptFile.FilePath);

            var executer = new FakeWebServiceCallExecuter();

            var model = new Dictionary <string, XElement>();

            foreach (var call in script.Calls)
            {
                // Transform the call:
                var request = this.TransformCall(call, model);

                // Execute it:
                var response = executer.Execute(request);

                model.Add(call.Id, response);
            }

            return(script);
        }
예제 #2
0
        public object RunScript(ScriptFile scriptFile)
        {
            var script = this._loadScript(scriptFile.FilePath);

            var executer = new FakeWebServiceCallExecuter();

            var model = new Dictionary<string, XElement>();

            foreach (var call in script.Calls)
            {
                // Transform the call:
                var request = this.TransformCall(call, model);

                // Execute it:
                var response = executer.Execute(request);

                model.Add(call.Id, response);
            }

            return script;
        }