GetMetersValue() public method

public GetMetersValue ( List meters, AgGateway.ADAPT.ApplicationDataModel.LoggedData.SpatialRecord spatialRecord ) : UInt32
meters List
spatialRecord AgGateway.ADAPT.ApplicationDataModel.LoggedData.SpatialRecord
return System.UInt32
        public void GivenMetersWithStartAt176WhenGetMetersValueThenValuesCorrect()
        {
            SpatialRecord spatialRecord;
            var meters = CreateMeters(out spatialRecord, 241);
            var creator = new CondensedWorkStateMeterCreator(176, 161);

            var result = creator.GetMetersValue(meters, spatialRecord);
            Assert.AreEqual(0x44444444, result);
        }
        public void GivenMetersWithStartAt161AndUndefinedWhenGetMetersValueThenValuesCorrect()
        {
            var meters = new List<WorkingData>();
            for (int i = 1; i < 17; i++)
            {
                meters.Add(new ISOEnumeratedMeter { DeviceElementUseId = i });
            }

            var spatialRecord = new SpatialRecord();
            for (var i = 0; i < 16; i++)
            {
                if (i % 2 == 0)
                    spatialRecord.SetMeterValue(meters[i],
                        new EnumeratedValue
                        {
                            Value = DefinedTypeEnumerationInstanceList.dtiSunny.ToModelEnumMember()
                        });
                else
                    spatialRecord.SetMeterValue(meters[i],
                        new EnumeratedValue
                        {
                            Value = DefinedTypeEnumerationInstanceList.dtiRecordingStatusOn.ToModelEnumMember()
                        });
            }

            var creator = new CondensedWorkStateMeterCreator(161, 161);
            var result = creator.GetMetersValue(meters, spatialRecord);
            Assert.AreEqual(0x77777777, result);
        }