Exemple #1
0
        static void Main(string[] args)
        {
            bool mock = true; // I know this isn't how to mock but it enabled functional testing without Unit test added to project
            int  days = 5;    //TODO[Bring from args]

            var           feedSource            = new FeedSource(mock);
            RssFeedEngine rssFeedEngine         = new RssFeedEngine(feedSource.Data(), mock);
            RssFunctions  rssFunctions          = new RssFunctions(rssFeedEngine.GetFeedData());
            Dictionary <string, string> results = rssFunctions.CompaniesNoActivityforDays(days);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            bool mock = true; // I know this isn't how to mock but it enabled functional testing without Unit test added to project
            int  days = 5;    //TODO[Bring from args]

            //Get List of feeds to verify
            FeedSource    feedSource            = new FeedSource(mock);
            RssFeedEngine rssFeedEngine         = new RssFeedEngine(feedSource.Data(), mock);
            RssFunctions  rssFunctions          = new RssFunctions(rssFeedEngine.GetFeedData());
            Dictionary <string, string> results = rssFunctions.CompaniesNoActivityforDays(days);

            foreach (var dict in results)
            {
                Console.WriteLine($"key: {dict.Key}: Value={dict.Value}");
            }
        }