public void EstimateFoundations(string exGround, string propGround, double expectedResult) { FoundationInput input = new FoundationInput() { ExistingGround = exGround, ProposedGround = propGround }; FoundationLevels levels = RunTest <FoundationLevels>(nameof(EstimateFoundationsResident), input); Assert.AreEqual(expectedResult, levels.FoundationLevel, 0.001); }
public FoundationLevels EstimateFoundationsResident(FoundationInput input) { Document doc = Application.DocumentManager.MdiActiveDocument; ConceptualPlot plot; using (Transaction trans = doc.TransactionManager.StartTransaction()) { plot = BuildConceptualPlot(input, doc, trans); FoundationLevels result = new FoundationLevels() { FoundationLevel = plot.FoundationDepth }; return(result); } }