Esempio n. 1
0
        public void AuthenticationFailureTest()
        {
            GXJsonClient  cl       = new GXJsonClient("http://localhost:6786/");
            GXEchoRequest expected = new GXEchoRequest();

            expected.Id = new Random().Next();
            GXEchoResponse actual = cl.Delete(expected);

            Assert.AreEqual(expected.Id, actual.Id);
        }
Esempio n. 2
0
        public void DeleteTest()
        {
            Server.Close();
            Server = new GXAuthenticationServer("http://localhost:6786/");
            GXJsonClient  cl       = new GXJsonClient("http://localhost:6786/", "Gurux", "Gurux");
            GXEchoRequest expected = new GXEchoRequest();

            expected.Id = new Random().Next();
            GXEchoResponse actual = cl.Delete(expected);

            Assert.AreEqual(expected.Id, actual.Id);
        }