Ejemplo n.º 1
0
        public void TestPostRequests()
        {
            IEmitter emitter = new SyncEmitter(TEST_SERVER, HttpProtocol.HTTP, HttpMethod.POST);

            emitter.SetSendLimit(1);
            Tracker t1 = new Tracker(emitter, "TestNamespace", "TestAppId", GetSubject(), GetSession(), null, false);

            DoTest(t1);
        }
Ejemplo n.º 2
0
        public void TestGetRequests()
        {
            IEmitter emitter = new SyncEmitter(TEST_SERVER, HttpProtocol.HTTP, HttpMethod.GET);

            emitter.SetSendLimit(1);
            Tracker t1 = new Tracker(emitter, "TestNamespace", "TestAppId", GetSubject(), GetSession(), null, false);

            DoTest(t1);
            Assert.AreEqual(0, emitter.GetEventStore().GetEventCount());
        }