We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e101bd commit 1d617aeCopy full SHA for 1d617ae
1 file changed
test/Sentry.AspNetCore.Tests/SentryMiddlewareTests.cs
@@ -34,6 +34,18 @@ public Fixture()
34
Hub.When(hub => hub.ConfigureScope(Arg.Any<Action<Scope>>()))
35
.Do(callback => callback.Arg<Action<Scope>>().Invoke(Scope));
36
37
+ Hub.When(hub => hub.ConfigureScope(
38
+ Arg.Any<Action<Scope, Arg.AnyType>>(),
39
+ Arg.Any<Arg.AnyType>()))
40
+ .Do(callInfo =>
41
+ {
42
+ var action = callInfo[0];
43
+ var arg = callInfo[1];
44
+ action.GetType().GetMethod("Invoke").Invoke(
45
+ action,
46
+ [Scope, arg]);
47
+ });
48
+
49
Hub.When(hub => hub.CaptureEvent(Arg.Any<SentryEvent>(), Arg.Any<Scope>()))
50
.Do(_ => Scope.Evaluate());
51
0 commit comments