Esempio n. 1
0
        public void TestMethod2()
        {
            var wlcTool = new MCDA.Model.WLCTool(DataTable, ToolParameterContainer);

            wlcTool.Run();

            Assert.IsNotNull(wlcTool.Data);
            Assert.IsTrue(wlcTool.Data.Rows.Count == 5);
            Assert.AreEqual(wlcTool.DefaultResultColumnName, "WLCResult");
            var item = wlcTool.Data.Rows[0].ItemArray[4];
        }
Esempio n. 2
0
        public static WLCTool NewWLCTool()
        {
            var wlcParameter = MCDA.MCDAExtension.GetExtension().GetToolParameterBasedOnSelectedFields();

            wlcParameter.DistributeEquallyToolParameterWeights();

            var dataTable = MCDA.MCDAExtension.GetExtension().GetDataTableForParameterSet(wlcParameter.ToolParameter);

            var wlcTool = new WLCTool(dataTable, wlcParameter);

            wlcTool.DefaultResultColumnName = MCDA.MCDAExtension.GetExtension().GetSuggestNameForResultColumn(wlcTool.DefaultResultColumnName);

            return(wlcTool);
        }