Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Collecting data, please wait...");

            var          fetcher = new HttpFetcher();
            const string baseUrl = "https://www.poromaa.com/assignment_data/";
            const string apiUrl  = "transactions.json";

            //Get list with objects
            var data    = fetcher.GetData(baseUrl, apiUrl, args[0], args[1]);
            var balance = Calculation.GetBalance(data);

            Console.Clear();
            Console.WriteLine($"Balance: {balance}");

            Console.ReadKey();
        }