public SubstituterFacility Substitute <TService>(Action <SubstituteInstanceParams <TService> > config) where TService : class { SubstituteInstanceParams <TService> .Config(_container, config); return(this); }
internal static SubstituteInstanceParams <TService> Config(IWindsorContainer container, Action <SubstituteInstanceParams <TService> > config) { var args = new SubstituteInstanceParams <TService>(); config(args); args.Register(container); return(args); }