Beispiel #1
0
        private const string QuestionKey = "ALLPersonal440785"; // Why I'm Running

        // ReSharper disable once UnusedParameter.Local
        private static void Main(string[] args)
        {
            var withVideoUrls = Politicians.GetAllCacheData().Where(row =>
                                                                    !IsNullOrWhiteSpace(row.YouTubeWebAddress.GetYouTubeVideoId())).ToList();
            var count     = 0;
            var duplicate = 0;

            foreach (var politician in withVideoUrls)
            {
                count = MoveVideoToAnswers(politician, count, ref duplicate);
            }
            Console.WriteLine("With Video URL: {0} -- Invalid: {1} -- Duplicate: {2}",
                              withVideoUrls.Count, withVideoUrls.Count - count, duplicate);
            Console.Write("Press any key to exit");
            Console.ReadKey();
        }