예제 #1
0
 public Account(string costumer, CostumerType tipClient, double balance, double interestRate, double nrOfMonths)
 {
     this.Costumer     = costumer;
     this.TipClient    = tipClient;
     this.Balance      = balance;
     this.InterestRate = interestRate;
     this.NrOfMonths   = nrOfMonths;
 }
예제 #2
0
        private decimal CalculateTotalPrice(CostumerType costumerType, IEnumerable <DateTime> dates)
        {
            decimal totalPrice = 0;

            foreach (var date in dates)
            {
                totalPrice += GetPrice(costumerType, date);
            }

            return(totalPrice);
        }
예제 #3
0
        private HotelSearchCriteria CreateHotelSearchCriteria(CostumerType costumerType, DateTime startDate, DateTime finishDate)
        {
            List <DateTime> dates = new List <DateTime>();

            for (DateTime date = startDate; date <= finishDate; date = date.AddDays(1))
            {
                dates.Add(date);
            }

            return(new HotelSearchCriteria(costumerType, dates.ToArray()));
        }
예제 #4
0
 public HotelSearchCriteria(CostumerType costumerType, params DateTime[] dates)
 {
     CostumerType = costumerType;
     Dates        = dates;
 }
예제 #5
0
 public IoanAccount(CostumerType costumerTytpe, double balance, double interestRate)
     : base(costumerTytpe, balance,interestRate)
 {
 }
예제 #6
0
 public LoanAccount(string costumer, CostumerType tipClient, double balance, double interestRate, double nrOfMonths) : base(costumer, tipClient, balance, interestRate, nrOfMonths)
 {
 }
예제 #7
0
 public Mortgage(CostumerType costumerTytpe, double balance, double interestRate)
     : base(costumerTytpe, balance,interestRate)
 {
 }
예제 #8
0
 public account(CostumerType costumerTytpe, double balance, double interestRate)
 {
     this.CostumerType = costumerTytpe;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
예제 #9
0
        private decimal GetPrice(CostumerType costumerType, DateTime date)
        {
            Price price = PriceByCostumerType[costumerType];

            return(price.GetByDate(date));
        }
예제 #10
0
 private HotelSearchCriteria(CostumerType costumerType, IEnumerable <DateTime> dates)
 {
     CostumerType = costumerType;
     Dates        = dates;
 }