private Domain BuildDomain(string version, DomainUpgradeMode upgradeMode)
        {
            var configuration = DomainConfigurationFactory.Create();

            configuration.UpgradeMode = upgradeMode;
            configuration.Types.Register(Assembly.GetExecutingAssembly(),
                                         "Xtensive.Orm.Tests.Upgrade.FullText.Model." + version);
            using (Upgrader.Enable(version)) {
                var domain = Domain.Build(configuration);
                return(domain);
            }
        }
        private void BuildDomain(string version, DomainUpgradeMode upgradeMode)
        {
            if (domain != null)
            {
                domain.DisposeSafely();
            }

            var configuration = DomainConfigurationFactory.Create();

            configuration.UpgradeMode = upgradeMode;
            configuration.Types.Register(Assembly.GetExecutingAssembly(),
                                         "Xtensive.Orm.Tests.Upgrade.FullText.Model." + version);
            using (Upgrader.Enable(version))
                domain = Domain.Build(configuration);
        }