public DefaultTermsOptionPage(EasyConsoleCore.Program program, Term defaultTerm) : base("Calculate loan payments", program, new[] { new Option("No", () => program.NavigateTo <CalculateLoanPage>()), new Option("Yes", () => program.NavigateTo <ChangeTermsPage>()), }) { _defaultTerm = defaultTerm; }
public WelcomePage(EasyConsoleCore.Program program, Term defaultTerm, Term effectiveTerm) : base("Cloud Engineer Banking Challenge", program, new [] { new Option("Calculate", () => program.NavigateTo <DefaultTermsOptionPage>()), new Option("Calculation history", () => program.NavigateTo <HistoryPage>()), new Option("About", () => program.NavigateTo <AboutPage>()), }) { effectiveTerm.MaxAdministrationFee = defaultTerm.MaxAdministrationFee; effectiveTerm.AdministrationFeePercent = defaultTerm.AdministrationFeePercent; effectiveTerm.Interest = defaultTerm.Interest; }
public MainMenuPage(EasyConsoleCore.Program program) : base("Main Page", program, /*new Option("Add General Passenger", () => program.NavigateTo<AddGeneralPassengerPage>()), * new Option("Add Loyalty Passenger", () => program.NavigateTo<AddLoyaltyPassengerPage>()), * new Option("Add Airline Passenger", () => program.NavigateTo<AddAirlinePassengerPage>()), * new Option("Add Discount Passenger", () => program.NavigateTo<AddDiscountPassengerPage>()),*/ new Option("Load Passengers", () => program.NavigateTo <BulkLoadPassengerPage>()), new Option("Display Summary", () => program.NavigateTo <DisplaySummaryPage>())) { }
public AddLoyaltyPassengerPage(EasyConsoleCore.Program program) : base("Add Loyalty Passenger", program) { }
public OrderListMenu(EasyConsoleCore.Program program) : base("Order list", program) { this.program = program; }
public MainMenu(EasyConsoleCore.Program program) : base("Main Menu", program) { this.program = program; }
public AddGeneralPassengerPage(EasyConsoleCore.Program program) : base("Add General Passenger", program) { }
public Receipt(EasyConsoleCore.Program program) : base("Receipt", program) { this.program = program; }
public DisplaySummaryPage(EasyConsoleCore.Program program) : base("Summary Page", program) { }
public PayMenu(EasyConsoleCore.Program program) : base("Pay", program) { this.program = program; }
public IngredientsMenu(EasyConsoleCore.Program program) : base("Ingredients menu", program) { this.program = program; }
public BulkLoadPassengerPage(EasyConsoleCore.Program program) : base("Load Passengers", program) { }
public CalculateLoanPage(EasyConsoleCore.Program program, Term effectiveTerm, ILoanService loanService) : base("Calculate loan payments", program) { _effectiveTerm = effectiveTerm; _loanService = loanService; }
public StartMenu(EasyConsoleCore.Program program) : base("Pizza Palatset", program) { this.program = program; }
public ChangeTermsPage(EasyConsoleCore.Program program, Term effectiveTerm) : base("Calculate loan payments", program) { _effectiveTerm = effectiveTerm; }
public AddDiscountPassengerPage(EasyConsoleCore.Program program) : base("Add Passenger", program) { }
public AboutPage(EasyConsoleCore.Program program) : base("Calculations history", program) { }
public HistoryPage(EasyConsoleCore.Program program, IHistoryRepository historyRepository) : base("Calculations history", program) { _historyRepository = historyRepository; }