Ejemplo n.º 1
0
        public void ReadFileTest()
        {
            var    target         = new UploadFile(); // TODO: Initialize to an appropriate value
            string logSettingName = Assembly.GetExecutingAssembly().Location;

            logSettingName = Path.GetDirectoryName(logSettingName) + @"\ServerSet.xml";
            target.ReadFile(logSettingName);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get a task list as a string
        /// </summary>
        /// <param name="taskId">
        /// The task Id.
        /// </param>
        /// <param name="fileName">
        /// The file Name.
        /// </param>
        public void UploadFile(int taskId, string fileName)
        {
            var uploadFile = new UploadFile
            {
                BusinessCredentials =
                    new BusinessInfo {
                    LicenseKey = AgentSetting.LicenseId
                },
                TaskId = taskId
            };

            uploadFile.ReadFile(fileName);

            uploadFile.Request(null);
        }