コード例 #1
0
        public async Task RunYoFreeSample(string connectionString)
        {
            YoFreeSample  yoFreeSample  = new YoFreeSample();
            List <string> udemyLinkList = yoFreeSample.CreateUdemyLinkList();

            Udemy         udemy      = new Udemy();
            List <Course> courseList = await udemy.CreateCourseList(udemyLinkList);

            Data data = new Data(connectionString);

            data.InsertCourse(courseList);
        }
コード例 #2
0
        public async Task RunCourseMania(string connectionString)
        {
            List <string> udemyLinkList = new List <string>();

            CourseMania courseMania = new CourseMania();

            udemyLinkList.AddRange(await courseMania.CreateUdemyLinkList());

            Udemy         udemy      = new Udemy();
            List <Course> courseList = await udemy.CreateCourseList(udemyLinkList);

            Data data = new Data(connectionString);

            data.InsertCourse(courseList);
        }