Meyn.TestLink.TestLink.GetTestCaseAttachments C# (CSharp) Метод

GetTestCaseAttachments() публичный Метод

retrieve the attachments for a test case
public GetTestCaseAttachments ( int testCaseId ) : List
testCaseId int
Результат List
        public List<Attachment> GetTestCaseAttachments(int testCaseId)
        {
            stateIsValid();
            object o = proxy.getTestCaseAttachments(devkey, testCaseId);
            handleErrorMessage(o);
            List<Attachment> result = new List<Attachment>();
            XmlRpcStruct olist = o as XmlRpcStruct;
            if (olist != null) {
                foreach (XmlRpcStruct item in olist.Values) {
                    Attachment a = new Attachment(item);
                    result.Add(a);
                }
            }
            return result;
        }