Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Apr 13, 2024
1 parent ef83cf5 commit 1415d83
Show file tree
Hide file tree
Showing 70 changed files with 174 additions and 85 deletions.
3 changes: 2 additions & 1 deletion readme/ArrayDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,9 @@ partial class Array
{
case null:
return composition.TestPureDIByCR();
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/EnumDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,9 @@ partial class Enum
{
case null:
return composition.TestPureDIByCR();
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/FuncDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ partial class Func
{
case null:
return composition.TestPureDIByCR();
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/SingletonDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ partial class Singleton
{
case null:
return composition.TestPureDIByCR();
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/TransientDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,9 @@ partial class Transient
{
case null:
return composition.TestPureDIByCR();
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.Benchmarks.Model.CompositionRoot.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/a-few-partial-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.SeveralPartialClassesScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.SeveralPartialClassesScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/accumulators.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type (Pure.DI.UsageTests.Advanced.AccumulatorScenario.IService service, Pure.DI.UsageTests.Advanced.AccumulatorScenario.MyAccumulator accumulator).");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type (Pure.DI.UsageTests.Advanced.AccumulatorScenario.IService service, Pure.DI.UsageTests.Advanced.AccumulatorScenario.MyAccumulator accumulator).");
}
object global::Pure.DI.IResolver<Composition, object>.Resolve(Composition composition)
{
Expand Down
3 changes: 2 additions & 1 deletion readme/advanced-interception.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Interception.AdvancedInterceptionScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Interception.AdvancedInterceptionScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.ArgumentsScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.ArgumentsScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.ArrayScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.ArrayScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/async-enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.AsyncEnumerableScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.AsyncEnumerableScenario.IService.");
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions readme/auto-scoped.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,9 @@ partial class Composition
{
case null:
return composition.SessionRoot;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.AutoScopedScenario.Service.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.AutoScopedScenario.Service.");
}
}

Expand All @@ -325,8 +326,9 @@ partial class Composition
{
case null:
return composition.ProgramRoot;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.AutoScopedScenario.Program.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.AutoScopedScenario.Program.");
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions readme/check-for-a-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Hints.CheckForRootScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Hints.CheckForRootScenario.IService.");
}
}

Expand All @@ -291,8 +292,9 @@ partial class Composition
{
case "MyDep":
return composition.RootM04D13di0001;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Hints.CheckForRootScenario.IDependency.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Hints.CheckForRootScenario.IDependency.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/complex-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Generics.ComplexGenericsScenario.Program<string>.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Generics.ComplexGenericsScenario.Program<string>.");
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions readme/composition-root-kinds.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,9 @@ partial class Composition
return composition.GetOtherService();
case null:
return composition.GetRoot();
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.CompositionRootKindsScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.CompositionRootKindsScenario.IService.");
}
}

Expand All @@ -285,8 +286,9 @@ partial class Composition
{
case null:
return Composition.Dependency;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.CompositionRootKindsScenario.IDependency.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.CompositionRootKindsScenario.IDependency.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/composition-roots-simplified.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ partial class Composition
return composition.RootM04D13di0002;
case null:
return composition.MyRoot;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.CompositionRootsSimplifiedScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.CompositionRootsSimplifiedScenario.IService.");
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions readme/composition-roots.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ partial class Composition
return composition.SomeOtherService;
case null:
return composition.MyRoot;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.CompositionRootsScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.CompositionRootsScenario.IService.");
}
}

Expand All @@ -310,8 +311,9 @@ partial class Composition
{
case null:
return composition.RootM04D13di0003;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.CompositionRootsScenario.IDependency.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.CompositionRootsScenario.IDependency.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/constructor-ordinal-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Attributes.ConstructorOrdinalAttributeScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Attributes.ConstructorOrdinalAttributeScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ partial class PersonComposition
{
case null:
return composition.Person;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Attributes.CustomAttributesScenario.IPerson.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Attributes.CustomAttributesScenario.IPerson.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Interception.DecoratorScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Interception.DecoratorScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/default-lifetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.DefaultLifetimeScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.DefaultLifetimeScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/default-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.DefaultValuesScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.DefaultValuesScenario.IService.");
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions readme/dependent-compositions.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.DependentCompositionsScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.DependentCompositionsScenario.IService.");
}
}
}
Expand Down Expand Up @@ -427,8 +428,9 @@ partial class OtherComposition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.DependentCompositionsScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.DependentCompositionsScenario.IService.");
}
}

Expand All @@ -445,8 +447,9 @@ partial class OtherComposition
{
case null:
return composition.Program;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.DependentCompositionsScenario.Program.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Advanced.DependentCompositionsScenario.Program.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ partial class Composition: global::System.IDisposable
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.DisposableSingletonScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Lifetimes.DisposableSingletonScenario.IService.");
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions readme/enumerable-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ partial class Composition
{
case null:
return composition.IntRoot;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.EnumerableGenericsScenario.IService<int>.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.EnumerableGenericsScenario.IService<int>.");
}
}

Expand All @@ -338,8 +339,9 @@ partial class Composition
{
case null:
return composition.StringRoot;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.EnumerableGenericsScenario.IService<string>.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.EnumerableGenericsScenario.IService<string>.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.EnumerableScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.EnumerableScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.FactoryScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.FactoryScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/field-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.FieldInjectionScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.Basics.FieldInjectionScenario.IService.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion readme/func-with-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,9 @@ partial class Composition
{
case null:
return composition.Root;
default:
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.FuncWithArgumentsScenario.IService.");
}
throw new global::System.InvalidOperationException($"Cannot resolve composition root \"{tag}\" of type Pure.DI.UsageTests.BCL.FuncWithArgumentsScenario.IService.");
}
}
}
Expand Down
Loading

0 comments on commit 1415d83

Please sign in to comment.