Exemplo n.º 1
0
 public void tt()
 {
     var container = new WindsorContainer();
     container.RegisterSession("session-for-db1", c => c.CreateSessionFactoryForDb1());
     container.RegisterSession("session-for-db2", c => c.CreateSessionFactoryForDb2());
     var session = container.Resolve<ISession>("session-for-db1");
     Assert.AreEqual(1, session.Id);
 }