Skip to content

Commit 1894061

Browse files
CopilotYoussef1313
andauthored
Rename RegisterTestFramework adapterFactory parameter to frameworkFactory (#5691)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
1 parent 7b0d5d1 commit 1894061

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/Platform/Microsoft.Testing.Platform/Builder/ITestApplicationBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public interface ITestApplicationBuilder
4747
/// Registers a test framework with the application builder.
4848
/// </summary>
4949
/// <param name="capabilitiesFactory">The factory method for creating test framework capabilities.</param>
50-
/// <param name="adapterFactory">The factory method for creating a test framework adapter.</param>
50+
/// <param name="frameworkFactory">The factory method for creating a test framework adapter.</param>
5151
/// <returns>The updated test application builder.</returns>
5252
ITestApplicationBuilder RegisterTestFramework(
5353
Func<IServiceProvider, ITestFrameworkCapabilities> capabilitiesFactory,
54-
Func<ITestFrameworkCapabilities, IServiceProvider, ITestFramework> adapterFactory);
54+
Func<ITestFrameworkCapabilities, IServiceProvider, ITestFramework> frameworkFactory);
5555

5656
/// <summary>
5757
/// Builds the test application asynchronously.

src/Platform/Microsoft.Testing.Platform/Builder/TestApplicationBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ internal TestApplicationBuilder(
7272

7373
public ITestApplicationBuilder RegisterTestFramework(
7474
Func<IServiceProvider, ITestFrameworkCapabilities> capabilitiesFactory,
75-
Func<ITestFrameworkCapabilities, IServiceProvider, ITestFramework> adapterFactory)
75+
Func<ITestFrameworkCapabilities, IServiceProvider, ITestFramework> frameworkFactory)
7676
{
77-
Guard.NotNull(adapterFactory);
77+
Guard.NotNull(frameworkFactory);
7878
Guard.NotNull(capabilitiesFactory);
7979

8080
if (_testFrameworkFactory is not null)
8181
{
8282
throw new InvalidOperationException(PlatformResources.TestApplicationBuilderFrameworkAdapterFactoryAlreadyRegisteredErrorMessage);
8383
}
8484

85-
_testFrameworkFactory = adapterFactory;
85+
_testFrameworkFactory = frameworkFactory;
8686

8787
if (_testFrameworkCapabilitiesFactory is not null)
8888
{
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
#nullable enable
2+
Microsoft.Testing.Platform.Builder.ITestApplicationBuilder.RegisterTestFramework(System.Func<System.IServiceProvider!, Microsoft.Testing.Platform.Capabilities.TestFramework.ITestFrameworkCapabilities!>! capabilitiesFactory, System.Func<Microsoft.Testing.Platform.Capabilities.TestFramework.ITestFrameworkCapabilities!, System.IServiceProvider!, Microsoft.Testing.Platform.Extensions.TestFramework.ITestFramework!>! frameworkFactory) -> Microsoft.Testing.Platform.Builder.ITestApplicationBuilder!
3+
*REMOVED*Microsoft.Testing.Platform.Builder.ITestApplicationBuilder.RegisterTestFramework(System.Func<System.IServiceProvider!, Microsoft.Testing.Platform.Capabilities.TestFramework.ITestFrameworkCapabilities!>! capabilitiesFactory, System.Func<Microsoft.Testing.Platform.Capabilities.TestFramework.ITestFrameworkCapabilities!, System.IServiceProvider!, Microsoft.Testing.Platform.Extensions.TestFramework.ITestFramework!>! adapterFactory) -> Microsoft.Testing.Platform.Builder.ITestApplicationBuilder!

0 commit comments

Comments
 (0)