Exemplo n.º 1
0
        private static async Task ProcessAsync(int number)
        {
            var dataFetcher   = new DataFetcher();
            var dataProcessor = new DataProcessor();
            var sender        = new DataSender();
            var saleList      = await dataFetcher.FetchDataAsync();

            var computedLIst = dataProcessor.Process(saleList);
            var result       = await sender.Send(computedLIst);

            if (result.IsSuccessStatusCode)
            {
                Console.WriteLine("Integration " + number);
            }
        }