public void Review(ConsumeBill bill) { var comments = bill.Expense > 100 ? "From Boss: This amount is not allowed" : "From Boss: I am fine with it."; Console.WriteLine(comments); }
public void Review(ConsumeBill bill) { var comments = bill.Expense > 100 ? "From CPA: Alert: so many money consumed" : "From CPA: I am fine with it."; Console.WriteLine(comments); }
private static AccountBook InitializeAccountBook() { var accountBook = new AccountBook(); var income = new IncomeBill { IncomeBeforeTax = 100, IncomeAfterTax = 70 }; accountBook.AttachBill(income); var consume = new ConsumeBill { Expense = 150 }; accountBook.AttachBill(consume); return(accountBook); }