interface IThing { int DoStuff(); }
class Thing: IThing { public int DoStuff(){ return 42; } }
void UnityTest(){
unityContainer.RegisterType<IThing, Thing>();
IThing thing = unityContainer.Resolve<IThing>();
int answer = thing.DoStuff();
}
I'm sure Google could have found you that. Please put a bit of effort in before asking on here.