public void SyncTest()
        {
            SqlServerMover target = new SqlServerMover(this.m_connectionString);

            target.Backup(this.m_name, Path.GetFullPath(this.m_file));
            //target.Restore(this.m_name, Path.GetFullPath(this.m_file));
        }
        public void AsyncTest()
        {
            int            counter = 0;
            SqlServerMover target  = new SqlServerMover(this.m_connectionString);

            target.BackupCompleted += (sender, e) => {
                counter++;
                target.RestoreAsync(this.m_name, Path.GetFullPath(this.m_file), null);
            };
            target.RestoreCompleted += (sender, e) => {
                counter++;
            };
            target.BackupAsync(this.m_name, Path.GetFullPath(this.m_file), null);
            while (counter < 2)
            {
                Thread.Sleep(0);
            }
        }
        public void BeginEndTest()
        {
            int            counter = 0;
            SqlServerMover target  = new SqlServerMover(this.m_connectionString);

            target.BeginBackup(this.m_name, Path.GetFullPath(this.m_file), (ar) => {
                counter++;
                target.EndBackup(ar);

                target.BeginRestore(this.m_name, Path.GetFullPath(this.m_file), (ar2) => {
                    counter++;
                    target.EndRestore(ar2);
                }, null);
            }, null);
            while (counter < 2)
            {
                Thread.Sleep(0);
            }
        }