internal Group(CommunicationDSC.GroupsRow groupsDsc, Station myStation, IList myDataDescriptionsList, ref int cVConstrain) { ASALicense _ASALicense = new ASALicense(); Name = groupsDsc.Name; GroupID = (ushort)groupsDsc.GroupID; TimeOut = new TimeSpan(0, 0, 0, 0, (int)groupsDsc.TimeOut); TimeScann = new TimeSpan(0, 0, 0, 0, (int)groupsDsc.TimeScan); if (groupsDsc.IsTimeScanFastNull() || !_ASALicense.Licensed) { TimeScanFast = TimeScann; } else { TimeScanFast = new TimeSpan(0, 0, 0, 0, (int)groupsDsc.TimeScanFast); } if (groupsDsc.IsTimeOutFastNull() || !_ASALicense.Licensed) { TimeOutFast = TimeOut; } else { TimeOutFast = new TimeSpan(0, 0, 0, 0, (int)groupsDsc.TimeOutFast); } foreach (CommunicationDSC.DataBlocksRow dataBlocksDSC in groupsDsc.GetDataBlocksRows()) { GroupDataDescription group = new GroupDataDescription(this, dataBlocksDSC, TimeOut, myStation, ref cVConstrain); group.ResetCounter(); myDataDescriptionsList.Add(group); } }//internal Group
public void ASALicenseTest() { ASALicense _ASALicense = new ASALicense(); Assert.IsTrue(_ASALicense.Licensed); Assert.IsNotNull(_ASALicense.Warning); Assert.AreEqual <int>(1, _ASALicense.Warning.Count); Assert.IsTrue(_ASALicense.Warning[0].Contains("It allows only to be used for non commercial purpose")); }