public void GetAllFilesTest()
 {
     //arrange
     FileUpploadController target = new FileUpploadController(this.uowData);
     //act
     var result = target.GetUploadedFiles(new Kendo.Mvc.UI.DataSourceRequest()) as JsonResult;
     var files = (Kendo.Mvc.UI.DataSourceResult)result.Data;
     int filesCount = 0;
     foreach (var file in files.Data)
     {
         filesCount++;
     }
     //assert
     Assert.AreEqual(3, filesCount);
 }
        public void GetUploadedFileDetailsTest()
        {
            FileUpploadController target = new FileUpploadController(this.uowData);
            //act
            var result = target.GetUploadedFileDetails(new Kendo.Mvc.UI.DataSourceRequest(), 3) as JsonResult;

            var results = (Kendo.Mvc.UI.DataSourceResult)result.Data;
            int filesCount = 0;
            foreach (var upploadResult in results.Data)
            {
                filesCount++;
            }
            //assert
            Assert.AreEqual(3, filesCount);
        }