3030
3131namespace Microsoft . Azure . Commands . TestFx
3232{
33- public delegate IRecordMatcher BuildMatcherDelegate ( bool ignoreResourcesClient , Dictionary < string , string > resourceProviders , Dictionary < string , string > userAgentsToIgnore ) ;
33+ public delegate IRecordMatcher RecordMatcherDelegate ( bool ignoreResourcesClient , Dictionary < string , string > resourceProviders , Dictionary < string , string > userAgentsToIgnore ) ;
3434
3535 public class TestManager : ITestRunnerFactory , ITestRunner
3636 {
@@ -42,7 +42,7 @@ public class TestManager : ITestRunnerFactory, ITestRunner
4242 protected readonly List < string > RmModules ;
4343 protected readonly List < string > CommonPsScripts = new List < string > ( ) ;
4444
45- protected BuildMatcherDelegate BuildMatcher { get ; set ; }
45+ protected RecordMatcherDelegate RecordMatcher { get ; set ; }
4646
4747 protected XunitTracingInterceptor Logger { get ; set ; }
4848
@@ -75,7 +75,7 @@ protected TestManager(string callingClassName)
7575 Helper . RMResourceModule ,
7676 } ;
7777
78- BuildMatcher = ( ignoreResourcesClient , resourceProviders , userAgentsToIgnore ) =>
78+ RecordMatcher = ( ignoreResourcesClient , resourceProviders , userAgentsToIgnore ) =>
7979 new PermissiveRecordMatcherWithApiExclusion ( ignoreResourcesClient , resourceProviders , userAgentsToIgnore ) ;
8080 }
8181
@@ -143,11 +143,11 @@ public ITestRunnerFactory WithNewRmModules(Func<EnvironmentSetupHelper, string[]
143143 /// <summary>
144144 /// Sets a new HttpMockServer.Matcher implementation. By defauls it's PermissiveRecordMatcherWithApiExclusion
145145 /// </summary>
146- /// <param name="buildMatcher ">delegate</param>
146+ /// <param name="recordMatcher ">delegate</param>
147147 /// <returns>self</returns>
148- public ITestRunnerFactory WithBuildMatcher ( BuildMatcherDelegate buildMatcher )
148+ public ITestRunnerFactory WithRecordMatcher ( RecordMatcherDelegate recordMatcher )
149149 {
150- BuildMatcher = buildMatcher ;
150+ RecordMatcher = recordMatcher ;
151151 return this ;
152152 }
153153
@@ -288,7 +288,7 @@ protected void SetupMockServerMatcher()
288288
289289 _userAgentsToIgnore ? . Keys . ForEach ( k=> userAgentsToIgnore . Add ( k , _userAgentsToIgnore [ k ] ) ) ;
290290
291- HttpMockServer . Matcher = BuildMatcher ( true , resourceProviders , userAgentsToIgnore ) ;
291+ HttpMockServer . Matcher = RecordMatcher ( true , resourceProviders , userAgentsToIgnore ) ;
292292 }
293293
294294 #endregion
0 commit comments