Skip to content

Commit

Permalink
refactor: rename test variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek committed Dec 22, 2023
1 parent dfb9f40 commit 87a223e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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();
Expand All @@ -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);

Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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();
Expand All @@ -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);

Expand All @@ -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();
Expand Down

0 comments on commit 87a223e

Please sign in to comment.