示例#1
0
        private ICopyFile GetFileCopy(string name, bool remote)
        {
            ICopyFile fc;
            if (remote)
            {
                fc = RemoteServiceHelper.CreateObject<ICopyFile>(Test.Constants.Localhost);
            }
            else
            {
                fc = new CopyFile();
            }

            fc.Source = String.Format(@"\\{0}\{1}\{2}.txt", Test.Constants.RemoteHost1, Test.Constants.TestDirectory, name);
            fc.Destination = String.Format(@"\\{0}\{1}\{2}_2.txt", Test.Constants.RemoteHost1, Test.Constants.TestDirectory, name);

            return fc;
        }