Skip to content

Commit f03a505

Browse files
committed
Update test
1 parent fe605cb commit f03a505

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Source/DotNetWorkQueue.Tests/IoC/CreateContainerTest.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ public void CreateContainer_AdminContext_WithPlaceholderName()
5656
var c = creator.Create(QueueContexts.Admin, x => { }, new QueueConnection("ADMIN", string.Empty), new NoOpDuplexTransport(), ConnectionTypes.NotSpecified, y => { });
5757

5858
// Assert - container should resolve without throwing
59+
// Filter out SRP warnings — duplex transport registers consumer pipeline classes
60+
// (ConsumerQueue, MessageProcessing, etc.) that have 8-9 dependencies by design
5961
Container container = c.Container;
60-
var results = Analyzer.Analyze(container);
62+
var results = Analyzer.Analyze(container)
63+
.Where(r => r.DiagnosticType != DiagnosticType.SingleResponsibilityViolation)
64+
.ToList();
6165
Assert.IsFalse(results.Any(), Environment.NewLine +
6266
string.Join(Environment.NewLine,
6367
from result in results

0 commit comments

Comments
 (0)