示例#1
0
 public void GetUser()
 {
     UsersService service = new UsersService( API_KEY );
     User user = service.GetUser( TEST_USER_ID );
     Assert.IsNotNull( user );
     Assert.AreEqual( TEST_USER_ID, user.Id, "user id is incorrect" );
     Assert.AreEqual( TEST_USER_NAME, user.Name, "name is incorrect" );
     Assert.IsNotNull( user.Email, "email shouldn't be null" );
     Assert.IsNotNull( user.Workspaces, "Workspaces shouldn't be null" );
     Assert.IsTrue( user.Workspaces.Length > 0, "user.Workspaces.Length == " + user.Workspaces.Length.ToString() + " - it should be > 0 " );
 }
示例#2
0
 public void GetMyUser()
 {
     UsersService service = new UsersService( API_KEY );
     User user = service.GetUser();
     Assert.IsNotNull( user );
 }