public MainClass(IFoo foo, IBar bar)
 {
     _foo = foo;
     _bar = bar;
     _foo.SetBar(bar);
     _bar.SetFoo(foo);
 }