Spelling fix
This commit is contained in:
Родитель
26dc4a8365
Коммит
0b85765e6b
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче