diff --git a/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/OffersArchitectureTests.cs b/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/OffersArchitectureTests.cs index c6f153af..fbf0c696 100644 --- a/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/OffersArchitectureTests.cs +++ b/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/OffersArchitectureTests.cs @@ -12,7 +12,7 @@ public class OffersArchitectureTests public void OffersShouldNotHaveDependencyOnModule(string moduleName) { // Arrange - var contractsModule = Solution.Types + var offersModule = Solution.Types .That() .ResideInNamespace(Modules.Offers); @@ -22,7 +22,7 @@ public void OffersShouldNotHaveDependencyOnModule(string moduleName) var forbiddenModuleTypes = forbiddenModule.GetModuleTypes(); // Act - var rules = contractsModule + var rules = offersModule .Should() .NotHaveDependencyOnAny(forbiddenModuleTypes); var validationResult = rules!.GetResult(); @@ -35,7 +35,7 @@ public void OffersShouldNotHaveDependencyOnModule(string moduleName) public void OffersShouldCommunicateWithPassesViaEvents() { // Arrange - var contractsModule = Solution.Types + var offersModule = Solution.Types .That() .ResideInNamespace(Modules.Offers); @@ -47,7 +47,7 @@ public void OffersShouldCommunicateWithPassesViaEvents() var forbiddenModuleTypes = shouldModule.GetModuleTypes(); // Act - var rules = contractsModule + var rules = offersModule .Should() .NotHaveDependencyOnAny(forbiddenModuleTypes); var validationResult = rules!.GetResult(); diff --git a/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/PassesArchitectureTests.cs b/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/PassesArchitectureTests.cs index 146a7435..4ef82913 100644 --- a/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/PassesArchitectureTests.cs +++ b/Chapter-1-initial-architecture/Src/Fitnet.ArchitectureTests/PassesArchitectureTests.cs @@ -12,7 +12,7 @@ public class PassesArchitectureTests public void PassesShouldNotHaveDependencyOnModule(string moduleName) { // Arrange - var contractsModule = Solution.Types + var passesModule = Solution.Types .That() .ResideInNamespace(Modules.Passes); @@ -22,7 +22,7 @@ public void PassesShouldNotHaveDependencyOnModule(string moduleName) var forbiddenModuleTypes = forbiddenModule.GetModuleTypes(); // Act - var rules = contractsModule + var rules = passesModule .Should() .NotHaveDependencyOnAny(forbiddenModuleTypes); var validationResult = rules!.GetResult(); @@ -35,7 +35,7 @@ public void PassesShouldNotHaveDependencyOnModule(string moduleName) public void PassesShouldCommunicateWithContractViaEvents() { // Arrange - var contractsModule = Solution.Types + var passesModule = Solution.Types .That() .ResideInNamespace(Modules.Passes); @@ -47,7 +47,7 @@ public void PassesShouldCommunicateWithContractViaEvents() var forbiddenModuleTypes = shouldModule.GetModuleTypes(); // Act - var rules = contractsModule + var rules = passesModule .Should() .NotHaveDependencyOnAny(forbiddenModuleTypes); var validationResult = rules!.GetResult();