@@ -16,12 +16,12 @@ namespace netmockery
1616 public abstract class RequestMatcher
1717 {
1818 public int Index = - 1 ;
19- public abstract bool Matches ( PathString path , string body , IHeaderDictionary headers ) ;
19+ public abstract bool Matches ( PathString path , QueryString queryString , string body , IHeaderDictionary headers ) ;
2020 }
2121
2222 public class AnyMatcher : RequestMatcher
2323 {
24- public override bool Matches ( PathString path , string body , IHeaderDictionary headers )
24+ public override bool Matches ( PathString path , QueryString queryString , string body , IHeaderDictionary headers )
2525 {
2626 return true ;
2727 }
@@ -43,9 +43,9 @@ public RegexMatcher(string regex)
4343
4444 public string Expression => _regex ;
4545
46- public override bool Matches ( PathString path , string body , IHeaderDictionary headers )
46+ public override bool Matches ( PathString path , QueryString queryString , string body , IHeaderDictionary headers )
4747 {
48- return Regex . IsMatch ( path . ToString ( ) , _regex ) || Regex . IsMatch ( body , _regex ) ;
48+ return Regex . IsMatch ( path . ToString ( ) , _regex ) || Regex . IsMatch ( queryString . ToString ( ) , _regex ) || Regex . IsMatch ( body , _regex ) ;
4949 }
5050
5151 public override string ToString ( )
@@ -75,7 +75,7 @@ public void AddNamespace(string prefix, string ns)
7575 _namespaces . Add ( ns ) ;
7676 }
7777
78- public override bool Matches ( PathString path , string body , IHeaderDictionary headers )
78+ public override bool Matches ( PathString path , QueryString queryString , string body , IHeaderDictionary headers )
7979 {
8080 var reader = XmlReader . Create ( new StringReader ( body ) ) ;
8181 var root = XElement . Load ( reader ) ;
0 commit comments