Exemplo n.º 1
0
        public static void TestGenerating()
        {
            Parameters tParameters = new Parameters();
            tParameters.Entries.Add("key1", "value1");
            tParameters.Entries.Add("key2", "value2");

            Assert.AreEqual("key1=value1&key2=value2",tParameters.GenerateParametersString());
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            Parameters cParameters = new Parameters();
            if (!cTraceEnd)
            {
                cParameters.Entries.Add("Path", StackToString());
                cParameters.Entries.Add("Id", cTraceId.ToString());
            }
            else
            {
                //If trace is over we should not get new parameters, so we indicate an error.
                cParameters.Entries.Add("Path", "Trace_error");
                cParameters.Entries.Add("Id", cTraceId.ToString());
            }

            return cParameters.GenerateParametersString();
        }