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
@@ -69,6 +69,8 @@ List of new features.
69
69
70
70
By [@egil](https://github.com/egil) in [#345](https://github.com/egil/bUnit/pull/345).
71
71
72
+
- Added additional bUnit JSInterop `Setup` methods, that makes it possible to get complete control of invocation matching for the created handler. By [@egil](https://github.com/egil).
/// Configure a JSInterop invocation handler with the <paramref name="identifier"/> and arguments
14
+
/// Configure a JSInterop invocation handler for an <c>InvokeAsync<TResult></c> call with arguments
15
15
/// passing the <paramref name="invocationMatcher"/> test.
16
16
/// </summary>
17
17
/// <typeparam name="TResult">The result type of the invocation.</typeparam>
18
18
/// <param name="jsInterop">The bUnit JSInterop to setup the invocation handling with.</param>
19
-
/// <param name="identifier">The identifier to setup a response for.</param>
20
-
/// <param name="invocationMatcher">A matcher that is passed an <see cref="JSRuntimeInvocation"/> associated with the<paramref name="identifier"/>. If it returns true the invocation is matched.</param>
19
+
/// <param name="invocationMatcher">A matcher that is passed an <see cref="JSRuntimeInvocation"/>. If it returns true the invocation is matched.</param>
20
+
/// <param name="isCatchAllHandler">Set to true if the created handler is a catch all handler, that should only be used if there are no other non-catch all handlers available.</param>
/// Configure a JSInterop invocation handler with the <paramref name="identifier"/> and arguments
38
+
/// passing the <paramref name="invocationMatcher"/> test.
39
+
/// </summary>
40
+
/// <typeparam name="TResult">The result type of the invocation.</typeparam>
41
+
/// <param name="jsInterop">The bUnit JSInterop to setup the invocation handling with.</param>
42
+
/// <param name="identifier">The identifier to setup a response for.</param>
43
+
/// <param name="invocationMatcher">A matcher that is passed an <see cref="JSRuntimeInvocation"/> associated with the<paramref name="identifier"/>. If it returns true the invocation is matched.</param>
/// Configure a JSInterop invocation handler with the <paramref name="identifier"/> and arguments
71
+
/// Configure a JSInterop invocation handler for an <c>InvokeVoidAsync</c> call with arguments
60
72
/// passing the <paramref name="invocationMatcher"/> test, that should not receive any result.
61
73
/// </summary>
62
74
/// <param name="jsInterop">The bUnit JSInterop to setup the invocation handling with.</param>
63
-
/// <param name="identifier">The identifier to setup a response for.</param>
64
-
/// <param name="invocationMatcher">A matcher that is passed an <see cref="JSRuntimeInvocation"/> associated with the<paramref name="identifier"/>. If it returns true the invocation is matched.</param>
75
+
/// <param name="invocationMatcher">A matcher that is passed an <see cref="JSRuntimeInvocation"/>. If it returns true the invocation is matched.</param>
76
+
/// <param name="isCatchAllHandler">Set to true if the created handler is a catch all handler, that should only be used if there are no other non-catch all handlers available.</param>
/// Configure a JSInterop invocation handler with the <paramref name="identifier"/> and arguments
90
+
/// passing the <paramref name="invocationMatcher"/> test, that should not receive any result.
91
+
/// </summary>
92
+
/// <param name="jsInterop">The bUnit JSInterop to setup the invocation handling with.</param>
93
+
/// <param name="identifier">The identifier to setup a response for.</param>
94
+
/// <param name="invocationMatcher">A matcher that is passed an <see cref="JSRuntimeInvocation"/> associated with the<paramref name="identifier"/>. If it returns true the invocation is matched.</param>
0 commit comments