You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ All notable changes to **bUnit** will be documented in this file. The project ad
6
6
7
7
## [Unreleased]
8
8
9
+
This release reintroduces `Stub<TComponent>` and related back into the main library, so the "preview" library `bunit.web.mock` is already obsolete.
10
+
9
11
### Added
10
12
11
13
- Add `ComponentFactories` extensions method that makes it easy to register an instance of a replacement component. By [@egil](https://github.com/egil).
@@ -73,44 +121,45 @@ public static ComponentFactoryCollection AddStub(
73
121
=>AddStub(
74
122
factories,
75
123
componentTypePredicate,
76
-
NoopReplacementTemplate);
124
+
string.Empty);
77
125
78
126
/// <summary>
79
127
/// Configures bUnit to use replace all components whose type make the <paramref name="componentTypePredicate"/> predicate return <c>true</c>
80
128
/// with a <see cref="Stub{TComponent}"/> component in the render tree.
81
129
/// </summary>
82
130
/// <param name="factories">The bUnit <see cref="ComponentFactoryCollection"/> to configure.</param>
83
131
/// <param name="componentTypePredicate">The predicate which decides if a component should be replaced with a <see cref="Stub{TComponent}"/> component.</param>
84
-
/// <param name="replacementTemplate">Optional replacement template that will be used to render output instead of the stubbed out component.</param>
132
+
/// <param name="replacementMarkup">Replacement markup that will be used to render output instead of the stubbed out components.</param>
/// Configures bUnit to use replace all components whose type make the <paramref name="componentTypePredicate"/> predicate return <c>true</c>
97
145
/// with a <see cref="Stub{TComponent}"/> component in the render tree.
98
146
/// </summary>
99
147
/// <param name="factories">The bUnit <see cref="ComponentFactoryCollection"/> to configure.</param>
100
148
/// <param name="componentTypePredicate">The predicate which decides if a component should be replaced with a <see cref="Stub{TComponent}"/> component.</param>
101
-
/// <param name="replacementTemplate">Optional replacement template that will be used to render output instead of the stubbed out component.</param>
149
+
/// <param name="replacementFragment">Replacement <see cref="RenderFragment"/> that will be used to render output instead of the stubbed out components.</param>
0 commit comments