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
Hi all,
I'm writing some unit tests for commands.
I'm trying to use the CommandAppTester helping class.
In my environment I was also adding an interceptor to the App
CommandAppTester app = new ();
app.Configure(config => config.SetInterceptor(new DummyInterceptor());
app.RunAsync(...)
But when the test doesn't use the DummyInterceptor because internally the CommandAppTester overrides it in this way
app.Configure(c => c.SetInterceptor(new CallbackCommandInterceptor((ctx, s) =>
{
context = ctx;
settings = s;
})));
Am I doing something wrong? Would it be possible to use interceptors in unit tests?
thanks in advance
The text was updated successfully, but these errors were encountered:
Hi all,
I'm writing some unit tests for commands.
I'm trying to use the CommandAppTester helping class.
In my environment I was also adding an interceptor to the App
CommandAppTester app = new ();
app.Configure(config => config.SetInterceptor(new DummyInterceptor());
app.RunAsync(...)
But when the test doesn't use the DummyInterceptor because internally the CommandAppTester overrides it in this way
app.Configure(c => c.SetInterceptor(new CallbackCommandInterceptor((ctx, s) =>
{
context = ctx;
settings = s;
})));
Am I doing something wrong? Would it be possible to use interceptors in unit tests?
thanks in advance
The text was updated successfully, but these errors were encountered: