public string DoHost() { var _ = _foo.DoFoo("DoFoo call from Host"); _ += " "; _ += _bar.DoBar("DoBar call from Host"); return(_); }
public Baz(IEnumerable<IFoo> foos, IBar bar) { foreach (var foo in foos) { foo.DoFoo(); } bar.DoBar(); }