Beispiel #1
0
        private void TransActionStartToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClearDebug();
            var fixture = new TransactionStart(ClientService).GetFixture();

            AddDebug("Fixture loaded.");
            AddDebug("JSON:");
            AddDebug(fixture.ToString());
            AddDebug("PARAMS:");
            AddDebug(fixture.ToQueryString());
            AddDebug("-----");
            AddDebug("DONE");
        }
Beispiel #2
0
        private void TransactionStartproductsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClearDebug();
            var fixture = new TransactionStart(ClientService).GetFixtureNoProductLines();

            AddDebug("Fixture loaded.");
            AddDebug("JSON:");
            AddDebug(fixture.ToString());
            AddDebug("PARAMS:");
            var qs = fixture.ToQueryString();

            AddDebug(qs);
            var nvc  = HttpUtility.ParseQueryString(qs);
            var json = JsonConvert.SerializeObject(NvcToDictionary(nvc, true));

            AddDebug("-----");
            AddDebug("PARAMS AS JSON");
            AddDebug(json);
            DumpNvc(nvc);
            AddDebug("-----");
            AddDebug("DONE");
        }