Exemplo n.º 1
0
        public void when_user_logs_in_the_sid_is_saved()
        {
            SynologyDirectory sort = new SynologyDirectory();

            sort.GetFileAPIList();
            sort.Login();

            // Check sid is applied
        }
Exemplo n.º 2
0
        public void when_files_are_listed_they_return_values()
        {
            SynologyDirectory sort = new SynologyDirectory();

            sort.GetFileAPIList();
            sort.Login();
            var files = sort.GetVideoFileList().Data.SynologyFiles.FindAll(x => x.FileName.Contains("Middle"));

            // Check sid is applied
        }
Exemplo n.º 3
0
        public void when_search_for_filename_no_error_is_returned()
        {
            SynologyDirectory synologyDirectory = new SynologyDirectory();

            synologyDirectory.GetFileAPIList();
            synologyDirectory.Login();

            synologyDirectory.GetFiles("*Middle*");

            //Assert.DoesNotThrow((x) => synologyDirectory.GetVideoFileList());
        }
Exemplo n.º 4
0
        public void when_move_is_called_no_error_is_thrown()
        {
            SynologyDirectory sort = new SynologyDirectory();

            sort.GetFileAPIList();
            sort.Login();
            var files = sort.GetVideoFileList().Data.SynologyFiles.FindAll(x => x.FileName.Contains("Middle"));

            var directory = files.FindAll(x => x.IsDirectory).OrderBy(y => y.FileFullPath.Length).First().FileFullPath;
            //var dir = directory.

            sort.MoveFiles(files.FindAll(x => !x.IsDirectory), directory);
            // Check sid is applied
        }