Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing a couple
  • Loading branch information
jbogard committed Jul 29, 2025
commit a995cdb5b5ff18bda02d1a69e725e027264b9ceb
4 changes: 1 addition & 3 deletions test/MediatR.Tests/Pipeline/RequestPostProcessorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public async Task Should_run_postprocessors()
cfg.Scan(scanner =>
{
scanner.FromAssemblyOf<PublishTests>()
.AddClasses(t => t.InNamespaceOf<Ping>()).AsImplementedInterfaces()
.AddClasses(t => t.AssignableTo(typeof(IRequestHandler<,>))).AsImplementedInterfaces()
.AddClasses(t => t.AssignableTo(typeof(IRequestPostProcessor<,>))).AsImplementedInterfaces();
.AddClasses(t => t.InNamespaceOf<Ping>()).AsImplementedInterfaces();
});
cfg.AddTransient(typeof(IPipelineBehavior<,>), typeof(RequestPostProcessorBehavior<,>));
cfg.AddTransient<IMediator, Mediator>();
Expand Down
4 changes: 1 addition & 3 deletions test/MediatR.Tests/Pipeline/RequestPreProcessorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public async Task Should_run_preprocessors()
cfg.Scan(scanner =>
{
scanner.FromAssemblyOf<PublishTests>()
.AddClasses(t => t.InNamespaceOf<Ping>()).AsImplementedInterfaces()
.AddClasses(t => t.AssignableTo(typeof(IRequestHandler<,>))).AsImplementedInterfaces()
.AddClasses(t => t.AssignableTo(typeof(IRequestPreProcessor<>))).AsImplementedInterfaces();
.AddClasses(t => t.InNamespaceOf<Ping>()).AsImplementedInterfaces();
});
cfg.AddTransient(typeof(IPipelineBehavior<,>), typeof(RequestPreProcessorBehavior<,>));
cfg.AddTransient<IMediator, Mediator>();
Expand Down