Exemplo n.º 1
0
        private void Initialize(out DateTime roundStartDate, out MlbAppService appService)
        {
            IConfigurationRoot configuration = InitializeConfiguration();

            Round = 4;
            var roundStartDateFromConfig = $"round{Round}_start_date";

            roundStartDate = Convert.ToDateTime(configuration[roundStartDateFromConfig]);
            appService     = new MlbAppService();
        }
Exemplo n.º 2
0
        private static void Initialize(out DateTime roundStartDate, out MlbAppService appService)
        {
            IConfigurationRoot configuration = InitializeConfiguration();

            Console.WriteLine("Enter the Round #");
            var roundNumber = Console.ReadLine();
            var roundStartDateFromConfig = $"round{roundNumber}_start_date";

            roundStartDate = Convert.ToDateTime(configuration[roundStartDateFromConfig]);
            appService     = new MlbAppService();
        }