Ejemplo n.º 1
0
        public void MigrateWorldDetailsTestFullMigration()
        {
            var sessionFactory = SessionFactory.CreateSessionFactory(true);
            var target = new MigrateToNhibernateDomainService(SessionManager.CurrentSession);
            target.MigrateWorldDetails();

            using (var session = sessionFactory.OpenSession())
            {
                var countries = session.QueryOver<Country>()
                    .List<Country>();

                Assert.True(countries.Count > 0);
            }
        }
Ejemplo n.º 2
0
 public void MigrateWorldDetails()
 {
     var migrationService = new MigrateToNhibernateDomainService(_session);
     migrationService.MigrateWorldDetails();
 }