Exemple #1
0
        public int GetCalculation(int a, int b)
        {
            CostDetails costDetails = new CostDetails
            {
                Milage = a,
                Year   = b
            };
            int res = this.RepairAttr.CalcRateCost(costDetails);

            return(this.RepairCalculation.Calculate(res));
        }
        //public int CalcRateCost(CostDetails costDetails)
        //{
        //    int result;

        //    public calcRateCost(CostDetails costDetails)
        //    {
        //        this.year = costDetails.
        //    }
        //    result = costDetails.

        //    return result;
        //}

        public int CalcRateCost(CostDetails costDetails)
        {
            return(costDetails.Milage + costDetails.Year);
        }