public void TestCreateGroup()
        {
            IChatterSoapService service = new ChatterService.ChatterSoapService(_url);

            service.Login(_username, _password, _token);
            service.CreateGroup("aa1", "This group was created by unit test", _employeeId);
            service.CreateGroup("aa2", "This group was created by\r\nunit test", _employeeId);
            byte   r     = 0x000D;
            byte   n     = 0x000A & 0x000A;
            String two   = "hello" + Convert.ToString(r) + "world" + r + "odd" + r + "" + n + "very" + r + n + "test";
            String three = "hello" + Convert.ToString(r) + Convert.ToString(n) + "world";

            service.CreateGroup("aa3", two, _employeeId);
            service.CreateGroup("aa4", three, _employeeId);
        }
        public void TestUsersToGroup()
        {
            IChatterSoapService service = new ChatterService.ChatterSoapService(_url);

            service.Login(_username, _password, _token);
            string id = service.CreateGroup("Test API Group 3", "This group was created by unit test", _employeeId);

            service.AddUsersToGroup(id, new string[] { "020524930", "027639251" });
        }
Exemplo n.º 3
0
        public void TestUsersToGroup()
        {
            IChatterSoapService service = new ChatterService.ChatterSoapService(_url);
            service.Login(_username, _password, _token);
            string id = service.CreateGroup("Test API Group 3", "This group was created by unit test", _employeeId);

            service.AddUsersToGroup(id, new string[] { "020524930", "027639251" });
        }
Exemplo n.º 4
0
 public void TestCreateGroup()
 {
     IChatterSoapService service = new ChatterService.ChatterSoapService(_url);
     service.Login(_username, _password, _token);
     service.CreateGroup("aa1", "This group was created by unit test", _employeeId);
     service.CreateGroup("aa2", "This group was created by\r\nunit test", _employeeId);
     byte r = 0x000D;
     byte n = 0x000A & 0x000A;
     String two ="hello" + Convert.ToString(r) + "world" + r + "odd" + r + "" + n + "very" + r + n + "test";
     String three ="hello" + Convert.ToString(r) + Convert.ToString(n) + "world";
     service.CreateGroup("aa3", two, _employeeId);
     service.CreateGroup("aa4", three, _employeeId);
 }