private static void VisitCalculateAmountTest()
        {
            while (true)
            {
                Console.Write("Podaj rodzaj wizyty: (N)FZ (P)rywatna (F)irma: ");
                string visitType = Console.ReadLine();

                Console.Write("Podaj czas wizyty w minutach: ");
                if (double.TryParse(Console.ReadLine(), out double minutes))
                {
                    TimeSpan duration = TimeSpan.FromMinutes(minutes);

                    VisitFactory visitFactory = new VisitFactory();

                    Visit visit = visitFactory.Create(duration, 100, visitType);

                    decimal totalAmount = visit.CalculateCost();

                    Console.ForegroundColor = ColorFactory.Create(totalAmount);

                    Console.WriteLine($"Total amount {totalAmount:C2}");

                    Console.ResetColor();
                }
            }
        }
        private static void VisitCalculateAmountTest()
        {
            Console.WriteLine("Podaj rodzaj wizyty: (N)FZ (P)rywatna (F)irma");

            string input = Console.ReadLine();

            VisitFactory visitFactory = new VisitFactory();

            Visit visit = visitFactory.Create(input);

            decimal totalAmount = visit.CalculateAmount();

            Console.BackgroundColor = ColorFactory.Create(totalAmount);

            Console.WriteLine($"Total amount {totalAmount:C2}");

            Console.ResetColor();
        }