private TimeSeries_SmallInt_Seconds GenerateTimeSeries_SmallInt_Seconds(int timeOffset, Guid stripId, string samplesText) { TimeSeries_SmallInt_Seconds v = (TimeSeries_SmallInt_Seconds)EntityFactory.GetEntityObject(TimeSeries_SmallInt_Seconds.EntityName, GetSourceTypeEnum.Table); v.TSDateOffset = timeOffset; v.TSValue = Convert.ToInt16(TestUtils.RandomUtils.RandomNumber(0, short.MaxValue)); v.TimeSeriesTypeID = (byte)EntityEnums.TimeSeriesTypeEnum.ECG; v.UserID = TestEnums.User.constPatientUserID; v.TSValueBinary = CompressionUtils.SerializeAndCompress(samplesText); v.TimeSeriesStripID = stripId; return(v); }