Beispiel #1
0
        public override TestResult Execute(int paramSetId)
        {
            try
            {
                NameValueCollection param = new NameValueCollection();
                _unitTestVm.ReadParameterValue(paramSetId, "RESOURCEID", param);
                _unitTestVm.ReadParameterValue(paramSetId, "ACTIVEONLY", param);

                MgResourceIdentifier resId = null;
                if (param["RESOURCEID"] != null)
                {
                    resId = new MgResourceIdentifier(param["RESOURCEID"]);
                }

                MgLongTransactionReader reader     = _featureService.GetLongTransactions(resId, (param["ACTIVEONLY"] == "1"));
                MgByteReader            byteReader = reader.ToXml();
                reader.Close();
                return(TestResult.FromByteReader(byteReader));
            }
            catch (MgException ex)
            {
                return(TestResult.FromMgException(ex));
            }
            catch (Exception ex)
            {
                return(TestResult.FromException(ex));
            }
        }
Beispiel #2
0
 public LocalLongTransactionList(MgLongTransactionReader rdr)
 {
     _transactions = new List<LocalLongTransaction>();
     while (rdr.ReadNext())
     {
         _transactions.Add(new LocalLongTransaction(rdr));
     }
     rdr.Close();
 }
Beispiel #3
0
 public LocalLongTransaction(MgLongTransactionReader rdr)
 {
     this.Name = rdr.Name;
     this.Description = rdr.Description;
     this.Owner = rdr.Owner;
     this.CreationDate = rdr.CreationDate.ToString();
     this.IsActive = rdr.IsActive();
     this.IsFrozen = rdr.IsFrozen();
 }