Beispiel #1
0
 private static void RequestStupidlyExpensiveExpense(ExpenseHandler manager)
 {
     IExpenseReport stupidlyExpensiveExpenseReport = new ExpenseReport(25000);
     ApprovalResponse stupidlyExpensiveResponse = manager.Approve(stupidlyExpensiveExpenseReport);
     Console.WriteLine("The request for {0} was {1}.", stupidlyExpensiveExpenseReport.Total, stupidlyExpensiveResponse);
 }
Beispiel #2
0
 private static void RequestMildlyCheapExpense(ExpenseHandler manager)
 {
     IExpenseReport mildlyCheapExpenseReport = new ExpenseReport(1250);
     ApprovalResponse mildlyCheapExpenseReponse = manager.Approve(mildlyCheapExpenseReport);
     Console.WriteLine("The request for {0} was {1}.", mildlyCheapExpenseReport.Total, mildlyCheapExpenseReponse);
 }
Beispiel #3
0
 private static void RequestRatherExpensiveExpense(ExpenseHandler manager)
 {
     IExpenseReport ratherExpensiveExpenseReport = new ExpenseReport(5500);
     ApprovalResponse ratherExpensiveResponse = manager.Approve(ratherExpensiveExpenseReport);
     Console.WriteLine("The request for {0} was {1}.", ratherExpensiveExpenseReport.Total, ratherExpensiveResponse);
 }
Beispiel #4
0
 private static void RequestCheapExpense(ExpenseHandler manager)
 {
     IExpenseReport cheapExpenseReport = new ExpenseReport(500);
     ApprovalResponse cheapExpenseResponse = manager.Approve(cheapExpenseReport);
     Console.WriteLine("The request for {0} was {1}.", cheapExpenseReport.Total, cheapExpenseResponse);
 }