Skip to content

Commit a1331a5

Browse files
PR comments fix;
1 parent aabc32b commit a1331a5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/TestFx/ITestRunnerFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public interface ITestRunnerFactory
2727
ITestRunnerFactory WithExtraRmModules(Func<EnvironmentSetupHelper, string[]> buildModuleList);
2828
ITestRunnerFactory WithNewRmModules(Func<EnvironmentSetupHelper, string[]> buildModuleList);
2929
ITestRunnerFactory WithExtraUserAgentsToIgnore(Dictionary<string, string> userAgentsToIgnore);
30-
ITestRunnerFactory WithBuildMatcher(BuildMatcherDelegate buildMatcher);
30+
ITestRunnerFactory WithRecordMatcher(RecordMatcherDelegate recordMatcher);
3131
}
3232
}

src/TestFx/TestManager.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
namespace 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

Comments
 (0)