/// <summary> /// Initialises a new instance of the <see cref="Parser"/> class. /// </summary> /// <param name="formatParser">The format-specific parser to be used.</param> /// <param name="soapActionMode">Indicates how to process the list of SOAP actions.</param> /// <param name="soapActions">List of SOAP actions to be filtered for. Only the SOAP actions in this list are /// returned. If the list is empty all SOAP actions are returned.</param> public Parser(IFormatParser formatParser, SoapActionMode soapActionMode, params string[] soapActions) { this.formatParser = formatParser; this.soapActionMode = soapActionMode; if (soapActions == null) { this.soapActions = new List <string>(); } else { this.soapActions = new List <string>(soapActions); } }
private void SetupSut(SoapActionMode soapActionMode, params string[] soapActions) { this.sut = new Parser(this.mockFormatParser, soapActionMode, soapActions); }
internal static Parser CreateWcfParserFromFile(string fileName, bool clientTrace, bool serviceTrace, SoapActionMode soapActionMode, params string[] soapActions) { Parser ans; LastTraceFileOpened = Parser.OpenTraceFile(fileName); IFormatParser formatParser = new WcfParser(); formatParser.Setup(LastTraceFileOpened, fileName, clientTrace, serviceTrace); ans = new Parser(formatParser, soapActionMode, soapActions); return(ans); }
public static Parser CreateParser(typeType formatParserType, Stream traceFile, string fileName, bool clientTrace, bool serviceTrace, SoapActionMode soapActionMode, params string[] soapActions) { IFormatParser formatParser = null; if (formatParserType == null) { formatParser = new WcfParser(); } else { formatParser = Utility.CreateConfiguredType <IFormatParser>(formatParserType); } formatParser.Setup(traceFile, fileName, clientTrace, serviceTrace); Parser ans = new Parser(formatParser, soapActionMode, soapActions); return(ans); }