static void Main(string[] args)
 {
     using (Resolver)
     {
         IBankAccount b1 = Resolver.Get <IBankAccount>();
         IBankAccount b2 = Resolver.Get <IBankAccount>();
         b1.AddAccount((BankAccount)b2);
     }
 }