예제 #1
0
 //[TestMethod]
 public void ServerConnection()
 {
     var handler = new HttpClientHandler();
     //handler.Proxy = new WebProxy("127.0.0.1", 8888);
     Server server = new Server("http://command1.apphb.com/");
     //45878
     User usr = server.Login("lol", "lol");
     Assert.AreEqual((UInt64)45878, usr.Id);
 }
예제 #2
0
 //[TestMethod]
 public void Registration()
 {
     var handler = new HttpClientHandler();
     //handler.Proxy = new WebProxy("127.0.0.1", 8888);
     Server server = new Server("http://command1.apphb.com/");
     User usr = server.Register("login", "password");
     //Assert.AreEqual((Int64)001, usr.Id);
     Assert.AreEqual("login", usr.Login);
     Assert.AreEqual("password", usr.Password);
 }
예제 #3
0
 //[TestMethod]
 public void Login()
 {
     Server server = new Server("http://command1.apphb.com/");
     server.Login("login", "password");
 }