This commit is contained in:
ENikS 2023-04-05 17:59:53 -07:00
Родитель 26dc4a8365
Коммит 0b85765e6b
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -23,7 +23,7 @@ namespace Unity.Specification.BuildUp
public void AmbuguousAnnotations()
{
// Arrange
var instance = new TypeWithAmbuguousAnnotations();
var instance = new TypeWithAmbiguousAnnotations();
// Act
Container.BuildUp(instance);

Просмотреть файл

@ -24,7 +24,7 @@ namespace Unity.Specification.Constructor.Attribute
public virtual void MultipleConstructorsAnnotated()
{
// Act
var instance = Container.Resolve<TypeWithAmbuguousAnnotations>();
var instance = Container.Resolve<TypeWithAmbiguousAnnotations>();
// Assert
Assert.AreEqual(Container, instance.Container);

Просмотреть файл

@ -1,16 +1,16 @@
namespace Unity.Specification.TestData
{
public class TypeWithAmbuguousAnnotations
public class TypeWithAmbiguousAnnotations
{
public TypeWithAmbuguousAnnotations() => Ctor = 1;
public TypeWithAmbiguousAnnotations() => Ctor = 1;
[InjectionConstructor]
public TypeWithAmbuguousAnnotations(object arg) => Ctor = 2;
public TypeWithAmbiguousAnnotations(object arg) => Ctor = 2;
public TypeWithAmbuguousAnnotations(IUnityContainer container) => Ctor = 3;
public TypeWithAmbiguousAnnotations(IUnityContainer container) => Ctor = 3;
[InjectionConstructor]
public TypeWithAmbuguousAnnotations(object[] data) => Ctor = 4;
public TypeWithAmbiguousAnnotations(object[] data) => Ctor = 4;
public int Ctor { get; } // Constructor called