Skip to content

Commit f5eda13

Browse files
linkdotnetbUnitBot
authored andcommitted
refactor: Removed ComponentParameter and dependent types from public surface
1 parent 5eba861 commit f5eda13

33 files changed

Lines changed: 80 additions & 1111 deletions

MIGRATION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ The `TestContext` and `TestContextBase` classes have been merged into a single `
4646

4747
## Renamed all `RenderComponent` and `SetParametersAndRender` to `Render`
4848
To make the API more consistent, `RenderComponent` and `SetParametersAndRender` methods have been renamed to `Render`.
49+
50+
## Removal of `ComponentParameter` and method using them
51+
Using `ComponentParameter` and factory methods to create them is not recommend in V1 and have now been removed in V2. Instead, use the strongly typed builder pattern that enables you to pass parameters to components you render.

docs/samples/tests/xunit/AllKindsOfParamsTest.cs

Lines changed: 0 additions & 342 deletions
This file was deleted.

docs/samples/tests/xunit/NestedComponentTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
using Microsoft.AspNetCore.Components;
55
using Microsoft.AspNetCore.Components.Web;
6-
using static Bunit.ComponentParameterFactory;
76

87
namespace Bunit.Docs.Samples;
98

docs/samples/tests/xunit/ReRenderTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
using Microsoft.AspNetCore.Components;
55
using Microsoft.AspNetCore.Components.Web;
6-
using static Bunit.ComponentParameterFactory;
76

87
namespace Bunit.Docs.Samples;
98

docs/samples/tests/xunit/SemanticHtmlTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
using Microsoft.AspNetCore.Components;
55
using Microsoft.AspNetCore.Components.Web;
6-
using static Bunit.ComponentParameterFactory;
76

87
namespace Bunit.Docs.Samples;
98

docs/samples/tests/xunit/VerifyMarkupExamples.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
using Microsoft.AspNetCore.Components;
55
using Microsoft.AspNetCore.Components.Web;
6-
using static Bunit.ComponentParameterFactory;
76

87
namespace Bunit.Docs.Samples;
98

docs/samples/tests/xunit/WeatherForecastsTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using Microsoft.AspNetCore.Components;
55
using Microsoft.AspNetCore.Components.Web;
66
using Microsoft.Extensions.DependencyInjection;
7-
using static Bunit.ComponentParameterFactory;
87

98
namespace Bunit.Docs.Samples;
109

0 commit comments

Comments
 (0)