public List<TestSuite> GetFirstLevelTestSuitesForTestProject(int testprojectid)
{
stateIsValid();
object[] response = proxy.getFirstLevelTestSuitesForTestProject(devkey, testprojectid);
List<TLErrorMessage> errors = decodeErrors(response);
List<TestSuite> result = new List<TestSuite>();
if (errors.Count > 0) {
if (errors[0].code != 7008)
// project has no test suites, we return an emptu result
handleErrorMessage(response);
} else
foreach (XmlRpcStruct data in response) {
result.Add(new TestSuite(data));
}
return result;
}