public void NBackup_B_NRestoreTest()
		{
			if (GetServerVersion() < new Version("2.5.0.0"))
			{
				Assert.Inconclusive("Not supported on this version.");
				return;
			}

			FbConnection.DropDatabase(BuildConnectionString());

			var nrest = new FbNRestore();

			nrest.ConnectionString = BuildServicesConnectionString();
			nrest.BackupFiles = Enumerable.Range(0, 2).Select(l => ConfigurationManager.AppSettings["BackupRestoreFile"] + l.ToString());
			nrest.DirectIO = true;

			nrest.ServiceOutput += ServiceOutput;

			nrest.Execute();
		}
示例#2
0
		public void NBackup_B_NRestoreTest()
		{
			FbConnection.DropDatabase(BuildConnectionString());

			var nrest = new FbNRestore();

			nrest.ConnectionString = this.BuildServicesConnectionString();
			nrest.BackupFiles = Enumerable.Range(0, 2).Select(l => ConfigurationManager.AppSettings["BackupRestoreFile"] + l.ToString());
			nrest.DirectIO = true;

			nrest.ServiceOutput += ServiceOutput;

			nrest.Execute();
		}
		void NBackupBackupRestoreTest_RestorePart()
		{
			FbConnection.DropDatabase(BuildConnectionString(FbServerType));

			var nrest = new FbNRestore();

			nrest.ConnectionString = BuildServicesConnectionString(FbServerType);
			nrest.BackupFiles = Enumerable.Range(0, 2).Select(l => TestsSetup.BackupRestoreFile + l.ToString());
			nrest.DirectIO = true;

			nrest.ServiceOutput += ServiceOutput;

			nrest.Execute();
		}