30
30
31
31
namespace Microsoft . Azure . Commands . TestFx
32
32
{
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 ) ;
34
34
35
35
public class TestManager : ITestRunnerFactory , ITestRunner
36
36
{
@@ -42,7 +42,7 @@ public class TestManager : ITestRunnerFactory, ITestRunner
42
42
protected readonly List < string > RmModules ;
43
43
protected readonly List < string > CommonPsScripts = new List < string > ( ) ;
44
44
45
- protected BuildMatcherDelegate BuildMatcher { get ; set ; }
45
+ protected RecordMatcherDelegate RecordMatcher { get ; set ; }
46
46
47
47
protected XunitTracingInterceptor Logger { get ; set ; }
48
48
@@ -75,7 +75,7 @@ protected TestManager(string callingClassName)
75
75
Helper . RMResourceModule ,
76
76
} ;
77
77
78
- BuildMatcher = ( ignoreResourcesClient , resourceProviders , userAgentsToIgnore ) =>
78
+ RecordMatcher = ( ignoreResourcesClient , resourceProviders , userAgentsToIgnore ) =>
79
79
new PermissiveRecordMatcherWithApiExclusion ( ignoreResourcesClient , resourceProviders , userAgentsToIgnore ) ;
80
80
}
81
81
@@ -143,11 +143,11 @@ public ITestRunnerFactory WithNewRmModules(Func<EnvironmentSetupHelper, string[]
143
143
/// <summary>
144
144
/// Sets a new HttpMockServer.Matcher implementation. By defauls it's PermissiveRecordMatcherWithApiExclusion
145
145
/// </summary>
146
- /// <param name="buildMatcher ">delegate</param>
146
+ /// <param name="recordMatcher ">delegate</param>
147
147
/// <returns>self</returns>
148
- public ITestRunnerFactory WithBuildMatcher ( BuildMatcherDelegate buildMatcher )
148
+ public ITestRunnerFactory WithRecordMatcher ( RecordMatcherDelegate recordMatcher )
149
149
{
150
- BuildMatcher = buildMatcher ;
150
+ RecordMatcher = recordMatcher ;
151
151
return this ;
152
152
}
153
153
@@ -288,7 +288,7 @@ protected void SetupMockServerMatcher()
288
288
289
289
_userAgentsToIgnore ? . Keys . ForEach ( k=> userAgentsToIgnore . Add ( k , _userAgentsToIgnore [ k ] ) ) ;
290
290
291
- HttpMockServer . Matcher = BuildMatcher ( true , resourceProviders , userAgentsToIgnore ) ;
291
+ HttpMockServer . Matcher = RecordMatcher ( true , resourceProviders , userAgentsToIgnore ) ;
292
292
}
293
293
294
294
#endregion
0 commit comments