Example #1
0
 private static void ConfirmPrice(Customer customer, Film film, int rentDaysCount)
 {
     if (domainService.CanCustomerPayByBonuses(customer.Name, film.Type, rentDaysCount))
     {
         Console.WriteLine(String.Format(">You have enought bonus points to pay for this rent ({0} points) Would you like to pay by bonuses?: y", customer.BonusPoints));
     }
     else
     {
         var price = rentService.CalculatePrice(film.Type, rentDaysCount);
         Console.WriteLine(String.Format(">Your rent price is {0} EUR. Do you confirm a payment?: y", price));
     }
 }