Create UnityFactory.cs

tests a unity factory with delegate for lazy loading of dependencies