public ValuationResult GetValuationSheetDetailsByAdjId(Guid AdjudicationId) { ValuationRequest Request = new ValuationRequest(); ValuationSheetRow row = (ValuationSheetRow)IgrssAdapters.ValuationSheetAdapter.GetValuationSheetDetailsByAdjId(AdjudicationId).Rows[0]; Request.AdjudicationId = AdjudicationId; Request.ValuationId = row.ValuationFormId; Request.IsConstructedProperty = row.IsConstructedProperty; Request.EstimatedPrice = Convert.ToDecimal(row.EstimatedPrice); Request.TalukaCode = row.TalukaCode; Request.VillageCode = row.VillageCode; Request.DistrictCode = row.DistrictCode; Request.SchemeNo = row.SchemeNo; Request.AreaOfPlot = row.AreaOfPlot; Request.SchemeType = row.SchemeType; Request.TypeOfLand = row.TypeOfLand; Request.InternalElectrificationRate = row.InternalElectrificationRate; Request.DevelopmentRate = row.DevelopmentRate; Request.OtherFeeRate = row.OtherFeeRate; Request.SpecialDeductionRate = row.SpecialDeductionRate; Request.YearOfConstruction = row.YearOfConstruction; StampDutyCalculator calc = new StampDutyCalculator(); ValuationResult Result = calc.GetStampDutyCalculation(Request); return(Result); }
public void CalculateTaxProcedureWithRate_Return_CorrectTax(double price, bool highrate, double expectedTax) { //arrange //act var tax = StampDutyCalculator.CalculateResidentialwithRate(price, highrate); //assert Assert.AreEqual(expectedTax, tax); }