public void ReturnsValueForCurtainwall() { BuildingElementComponent bec = new BuildingElementComponent("AluminumCurtainWall"); ComponentReportEntry wEntr = bec.GetComponentWeight(); double w = wEntr.LoadValue; Assert.AreEqual(10.0, w); }
public static Dictionary<string, object> ComponentWeight(string ComponentId, double ComponentOption1, double ComponentOption2, double ComponentValue) { //Default values double q_D = 0; int Option1 = (int)ComponentOption1; int Option2 = (int)ComponentOption2; BuildingElementComponent bec = new BuildingElementComponent(ComponentId, Option1, Option2, ComponentValue, ""); try { q_D = bec.GetComponentWeight().LoadValue; } catch (System.Exception) { } return new Dictionary<string, object> { { "q_D", q_D } }; }
public void GFRC120pcfAnd1_2BackingReturnsValue() { BuildingElementComponent bec = new BuildingElementComponent("GFRCPanels", 0, 0, 0.0, ""); double gfrcEntr = bec.GetComponentWeight().LoadValue; Assert.Equal(5, gfrcEntr); }
public void ReturnsValueFor24() { BuildingElementComponent bec = new BuildingElementComponent("SolidConcreteSlab",1,2,24,""); ComponentReportEntry wEntr = bec.GetComponentWeight(); double w = wEntr.LoadValue; Assert.AreEqual(300.0, w); }
public void ReturnsValueFor24() { BuildingElementComponent bec = new BuildingElementComponent("SolidConcreteSlab", 1, 2, 24, ""); ComponentReportEntry wEntr = bec.GetComponentWeight(); double w = wEntr.LoadValue; Assert.AreEqual(300.0, w); }
public static Dictionary <string, object> ComponentWeight(string ComponentId, double ComponentOption1, double ComponentOption2, double ComponentValue) { //Default values double q_D = 0; int Option1 = (int)ComponentOption1; int Option2 = (int)ComponentOption2; BuildingElementComponent bec = new BuildingElementComponent(ComponentId, Option1, Option2, ComponentValue, ""); try { q_D = bec.GetComponentWeight().LoadValue; } catch (System.Exception) { } return(new Dictionary <string, object> { { "q_D", q_D } }); }
public void GFRC120pcfAnd1_2BackingReturnsValue() { BuildingElementComponent bec = new BuildingElementComponent("GFRCPanels", 0, 0, 0.0, ""); double gfrcEntr = bec.GetComponentWeight().LoadValue; Assert.AreEqual(5, gfrcEntr); }