public async Task SaveVocToExchangeCreatesDoctorTable() { // выгружаем словари с сервера var sdfFileCon = new ConnectionInfo("exch.sdf", Constants.SqlCeProvider); var syncer = new Syncer( serverConStr: serverCon.ConnectionString, clientConStr: sdfFileCon.ConnectionString, serverProviderName: serverCon.ProviderName); SqlHelper.CreateSqlCeByConStr(sdfFileCon.ConnectionString); var scopes = Scopes.GetOrderedDownloadScopes(); await syncer.WithoutDoctors().SendFrom(Side.Server, scopes); // пробуем достать словари var nhib = NHibernateHelper.FromConnectionInfo(sdfFileCon, Side.Server); int exVocsCount; using (var s = nhib.OpenSession()) using (var tr = s.BeginTransaction()) { exVocsCount = s.Query <Vocabulary>().Count(); // значит создана Doctors var docsCount = s.Query <Doctor>().Count(); } var serverVocsCount = sSession.Query <Vocabulary>().Count(); // даже пользовательские, их не должно быть на сервере Assert.AreEqual(serverVocsCount, exVocsCount); }