Пример #1
0
 private static void DisplayOfferDetails(Offer offer)
 {
     Console.WriteLine("Requested amount: £{0}", offer.RequestedAmount);
     Console.WriteLine("Rate: {0}", offer.Rate.ToString("#0.0%"));
     Console.WriteLine("Monthly repayment: £{0}", offer.Monthly.ToString("#0.00"));
     Console.WriteLine("Total repayment: £{0}", offer.Total.ToString("#0.00"));
 }
Пример #2
0
 private static bool ValidateOffer(double requestedAmount, Offer offer)
 {
     if (offer.IsEmpty)
     {
         Console.WriteLine("Sorry, it is not possible to provide a quote for £{0} at this time.", requestedAmount);
         return true;
     }
     return false;
 }