static void Main(string[] args) { var container = CompositionRoot.Configure(); //IUnityContainer unitycontainer = new UnityContainer(); //unitycontainer.RegisterType<Interface1, Class1>(); //ModuleInit.Register(unitycontainer); Class1 c = container.Resolve <Class1>(); Console.WriteLine(c.MyMethod("ConsoleApp1")); Console.ReadLine(); }