public void GenerateCoursesFromXML_ValidFilename_CourseListReturned()
        {
            // setup
            importer = new RateMyClasses.Models.SISImporter();
            importer.downloadCurrentSISExport();

            // test
            IEnumerable <RateMyClasses.Models.Course> courses = importer.generateCoursesFromXml(importer.currentXmlOutputFile);

            Assert.True(courses.ToList().Count > 3000);

            // reset state
            importer = null;
        }
        public void DownloadSISData_ValidState_GeneratesCorrectFile()
        {
            // setup
            importer = new RateMyClasses.Models.SISImporter();
            var SIS_OUTPUT_FILE_FORMAT_PREFIX = "sis_export_";
            var SIS_OUTPUT_FILE_FORMAT_SUFFIX = ".xml";

            // test
            importer.downloadCurrentSISExport();
            Assert.True(importer.currentXmlOutputFile.StartsWith(SIS_OUTPUT_FILE_FORMAT_PREFIX));
            Assert.True(importer.currentXmlOutputFile.EndsWith(SIS_OUTPUT_FILE_FORMAT_SUFFIX));

            // reset state
            importer = null;
        }