Ejemplo n.º 1
0
        public void AddParamValuesTest()
        {
            INodeBilder node = new NodeBilder();

            node.AddParamValues("code");
            Node            assertNode = (NodeBilder)node;
            ParamValuesNode param      = assertNode.Nodes[0] as ParamValuesNode;

            Assert.IsNotNull(param);
            StringAssert.Contains("code", param.Code);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Chargement des paramètres avec datavalue/xml
        /// </summary>
        /// <param name="FluxConfig"></param>
        public void LoadConfig(ParamValues FluxConfig)
        {
            this.FluxConfig = FluxConfig;

            // COnfig Loop
            ParamValuesNode FluxConfigProcessLoop = FluxConfig.Get("/param/process/loop", false);

            if (FluxConfigProcessLoop != null)
            {
                if (FluxConfigProcessLoop.GetObject("iteration", DataAccessorOptionEnum.None) != null)
                {
                    this.ConfigLoopIterations = FluxConfigProcessLoop.GetInt("iterations");
                }
                if (FluxConfigProcessLoop.GetObject("sleep", DataAccessorOptionEnum.None) != null)
                {
                    this.ConfigLoopSleep = FluxConfigProcessLoop.GetInt("sleep");
                }
            }
        }