Пример #1
0
        public override void Display()
        {
            base.Display();

            Output.WriteLine("Please enter your loan details:");

            var amount   = Input.ReadDouble("Please enter your loan amount (between 1 and 10 billion)", 1, 10000000000);
            var duration = Input.ReadInt("Please enter your loan duration in months (between 1 and 1200)", 1, 1200);

            var overview = _loanService.CreateOverview(amount, duration, _effectiveTerm);

            Output.WriteLine("==================");
            Output.WriteLine("Your loan overview");
            Output.WriteLine("==================");
            Output.WriteLine(string.Empty);

            Printer.Print(overview);

            Output.WriteLine(string.Empty);
            Input.ReadString("Press [enter] to return to main page!");

            Program.NavigateHome();
        }