public void VersionTest() { //Arrange Client myClient = new Client(URL, APIKEY, LANGUAGE); myClient.Username = "******"; myClient.Password = "******"; idoit idoit = new idoit(myClient); Version request = new Version(); Logout logout = new Logout(); Login login = new Login(); //login login = idoit.Login(); //Version myClient.sessionId = login.sessionId; request = idoit.Version(); //Logout logout = idoit.Logout(); //Assert Assert.IsNotNull(request.version); Assert.IsNotNull(request.type); Assert.IsNotNull(request.login.language); }
public void LoginTest() { //Arrange Client myClient = new Client(URL, APIKEY, LANGUAGE); myClient.Username = "******"; myClient.Password = "******"; idoit idoit = new idoit(myClient); Login request = new Login(); //Act request = idoit.Login(); //Assert Assert.IsTrue(request.result); Assert.IsNotNull(request.userId); }
//login async Task login() { parameter = client.GetParameter(); responseLogin = await client.GetConnection().InvokeAsync <Login>("idoit.login", parameter); }