Skip to content

RegisterType throws InvalidOperationException when no constructor could be matched with injected member #358

@ENikS

Description

@ENikS

Description

Test method Constructors.Selecting_Injected.Select_ByParameter_Generic threw exception:
System.InvalidOperationException: No member matching data has been found.

  Error in:  RegisterType<BaselineTestType`3>(Invoke.Constructor(ResolvedParameter: Type=IUnityContainer Name=null))
 ---> System.ArgumentException: No member matching data has been found.

To Reproduce

https://github.com/unitycontainer/container-regression-tests/blob/080a60420d136ff1ba1b632f8ffd11c8428ca813/Patterns/Selection/Injected/ByParameter.cs#L37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions