outbox checkpoint
This commit is contained in:
@@ -20,11 +20,16 @@ public class ModuleTests : BaseTest
|
||||
typeof(DependencyInjection).Assembly
|
||||
];
|
||||
|
||||
Types.InAssemblies(usersAssemblies)
|
||||
.Should()
|
||||
.NotHaveDependencyOn(HelloNamespace)
|
||||
.GetResult()
|
||||
.ShouldBeSuccessful();
|
||||
// Check each Hello implementation namespace individually.
|
||||
// Hello.IntegrationEvents would be an allowed reference (public contract), but Hello has none.
|
||||
foreach (string ns in HelloImplementationNamespaces)
|
||||
{
|
||||
Types.InAssemblies(usersAssemblies)
|
||||
.Should()
|
||||
.NotHaveDependencyOn(ns)
|
||||
.GetResult()
|
||||
.ShouldBeSuccessful();
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -37,10 +42,16 @@ public class ModuleTests : BaseTest
|
||||
typeof(Modules.Hello.Infrastructure.DependencyInjection).Assembly
|
||||
];
|
||||
|
||||
Types.InAssemblies(helloAssemblies)
|
||||
.Should()
|
||||
.NotHaveDependencyOn(UsersNamespace)
|
||||
.GetResult()
|
||||
.ShouldBeSuccessful();
|
||||
// Check each Users implementation namespace individually.
|
||||
// Users.IntegrationEvents is explicitly excluded as it is a public contract
|
||||
// that other modules are permitted to reference.
|
||||
foreach (string ns in UsersImplementationNamespaces)
|
||||
{
|
||||
Types.InAssemblies(helloAssemblies)
|
||||
.Should()
|
||||
.NotHaveDependencyOn(ns)
|
||||
.GetResult()
|
||||
.ShouldBeSuccessful();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user