public void CellsTaskPostRunTaskTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string name      = BOOK1;
            string sheetName = SHEET6;
            string folder    = TEMPFOLDER;

            UpdateDataFile(folder, name);

            TaskData taskData = new TaskData();

            taskData.Tasks = new List <TaskDescription>();
            TaskDescription task1 = new TaskDescription();

            task1.TaskType = "SplitWorkbook";

            SplitWorkbookTaskParameter param1 = new SplitWorkbookTaskParameter();

            param1.DestinationFileFormat                  = "xlsx";
            param1.DestinationFilePosition                = new FileSource();
            param1.DestinationFilePosition.FilePath       = TEMPFOLDER;
            param1.DestinationFilePosition.FileSourceType = "CloudFileSystem";
            param1.SplitNameRule           = "sheetname";
            param1.Workbook                = new FileSource();
            param1.Workbook.FileSourceType = "CloudFileSystem";
            param1.Workbook.FilePath       = TEMPFOLDER + "\\" + BOOK1;
            task1.TaskParameter            = param1;
            taskData.Tasks.Add(task1);
            var response = instance.CellsTaskPostRunTask(taskData);

            Assert.IsInstanceOf <System.IO.Stream>(response, "response is System.IO.Stream");
        }
        public void CellsTaskPostRunTaskTest()
        {
            string name      = "Book1.xlsx";
            string sheetName = "SHEET6";
            string folder    = null;

            new Config().UpdateDataFile(folder, name);

            TaskData taskData = new TaskData();

            taskData.Tasks = new List <TaskDescription>();
            TaskDescription task1 = new TaskDescription();

            task1.TaskType = "SplitWorkbook";

            SplitWorkbookTaskParameter param1 = new SplitWorkbookTaskParameter();

            param1.DestinationFileFormat                  = "xlsx";
            param1.DestinationFilePosition                = new FileSource();
            param1.DestinationFilePosition.FilePath       = null;
            param1.DestinationFilePosition.FileSourceType = "CloudFileSystem";
            param1.SplitNameRule           = "sheetname";
            param1.Workbook                = new FileSource();
            param1.Workbook.FileSourceType = "CloudFileSystem";
            param1.Workbook.FilePath       = "Book1.xlsx";
            task1.TaskParameter            = param1;
            taskData.Tasks.Add(task1);
            var response = instance.CellsTaskPostRunTask(taskData);

            Console.WriteLine(response);
        }