using Microsoft.Practices.Unity;
public class TestInstance
private TestDependency _dependency;
public TestInstance(TestDependency dependency)
_dependency = dependency;
return _dependency.TestMe();
public class TestDependency
return "Hello, Iam unity implicit registration!";
public static void Main()
var container = new UnityContainer();
var testInstance = container.Resolve<TestInstance>();
Console.WriteLine(testInstance.TestMe());