/// <summary> /// Gets the result. /// </summary> /// <returns></returns> public ResultsMessures GetResult() { var results = new ResultsMessures(); try { results.DentalBoneDiscrepancy = DentalBoneDiscrepancyCalculator.GetResult(mouthMessure, theethMessure); results.Tanaka = TanakaCalculator.GetResult(theethMessure); results.Moyers = MoyersCalculator.GetResult(mouthMessure, theethMessure); results.Pont = PontCalculator.GetResult(theethMessure); results.BoltonTotal = BoltonCalculator.GetBoltonTotalResult(theethMessure); results.BoltonPreviousRelation = BoltonCalculator.GetBoltonPreviousResult(theethMessure); } catch (Exception ex) { throw new CalculationCustomException("Error en calculos.", ex); } return(results); }
public void GetTanakaShouldSuccess() { var tanakaResult = TanakaCalculator.GetResult(theethMessure); Assert.AreEqual(tanakaResult.Inferior, (decimal)22.5, "Inferior Invalid"); Assert.AreEqual(tanakaResult.Superior, (decimal)23, "Superior Invalid"); }