From d35c72d835c1bb587e6f3c658a7effe753bd9804 Mon Sep 17 00:00:00 2001 From: Serg046 Date: Tue, 26 Mar 2024 18:12:35 +0200 Subject: [PATCH] Get rid of unnecessary .Tags() usages --- tests/Pure.DI.UsageTests/Hints/OnCannotResolveHintScenario.cs | 2 +- .../Hints/OnDependencyInjectionHintScenario.cs | 2 +- .../Interception/AdvancedInterceptionScenario.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Pure.DI.UsageTests/Hints/OnCannotResolveHintScenario.cs b/tests/Pure.DI.UsageTests/Hints/OnCannotResolveHintScenario.cs index ea095120d..e20a9ea22 100644 --- a/tests/Pure.DI.UsageTests/Hints/OnCannotResolveHintScenario.cs +++ b/tests/Pure.DI.UsageTests/Hints/OnCannotResolveHintScenario.cs @@ -66,7 +66,7 @@ public void Run() DI.Setup(nameof(Composition)) .Hint(OnCannotResolve, "On") .Bind().To() - .Bind().Tags().To().Root("Root"); + .RootBind("Root").To(); var composition = new Composition(); var service = composition.Root; diff --git a/tests/Pure.DI.UsageTests/Hints/OnDependencyInjectionHintScenario.cs b/tests/Pure.DI.UsageTests/Hints/OnDependencyInjectionHintScenario.cs index 8eeae1dc6..cc6cb234e 100644 --- a/tests/Pure.DI.UsageTests/Hints/OnDependencyInjectionHintScenario.cs +++ b/tests/Pure.DI.UsageTests/Hints/OnDependencyInjectionHintScenario.cs @@ -66,7 +66,7 @@ public void Run() DI.Setup(nameof(Composition)) .Hint(OnDependencyInjectionContractTypeNameRegularExpression, nameof(IDependency)) .Bind().To() - .Bind().Tags().To().Root("Root"); + .RootBind("Root").To(); var log = new List(); var composition = new Composition(log); diff --git a/tests/Pure.DI.UsageTests/Interception/AdvancedInterceptionScenario.cs b/tests/Pure.DI.UsageTests/Interception/AdvancedInterceptionScenario.cs index d0a25b695..41bc4bcdf 100644 --- a/tests/Pure.DI.UsageTests/Interception/AdvancedInterceptionScenario.cs +++ b/tests/Pure.DI.UsageTests/Interception/AdvancedInterceptionScenario.cs @@ -115,7 +115,7 @@ public void Run() // OnDependencyInjection = On DI.Setup(nameof(Composition)) .Bind().To() - .Bind().Tags().To().Root("Root"); + .RootBind("Root").To(); var log = new List(); var composition = new Composition(log);