static void test_getSpec() { TbiesIntf intf = new TbiesIntf("192.168.56.2"); List <Specification> specs = intf.getSpecsBrief(); Debug.Assert(specs.Count > 0); Specification spec = intf.getSpec("100C_Template"); Debug.Assert(spec != null); }
private BISpecification FetchSpecificationSet(string plan) { if (this._serverIp.ToUpper() == "") { return(this._specSet[plan]); } else { TbiesIntf intf = new TbiesIntf(_serverIp); return(AnalyzePlan.TransformFromApp(intf.getSpec(plan))); } }
static void test_transformSpec() { TbiesIntf intf = new TbiesIntf("192.168.56.2"); List <Specification> specs = intf.getSpecsBrief(); List <BISpecification> biSpecs = BISpecification.transformFromApp(specs); Debug.Assert(biSpecs.Count > 0); foreach (var spec in specs) { Specification wholeSpec = intf.getSpec(spec.name); BISpecification biSpec = BISpecification.transformFromApp(wholeSpec); Debug.Assert(biSpec.Specification != null); Debug.Assert(biSpec.Configuration != null); } }