Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }