private static MeterSuspensionAndDeploymentPair CreateMeterSuspensionWithBridgeDeployment(
            GaugingSummaryItem summaryItem, MeterSuspensionType meterSuspensionType)
        {
            var bridgeDeploymentMethod = DetermineBridgeDeploymentMethod(summaryItem);

            return(new MeterSuspensionAndDeploymentPair(meterSuspensionType, bridgeDeploymentMethod));
        }
        public void GetDischargeActivity_SetsCorrectTechnologyInfo(double soundingWeight,
                                                                   DeploymentMethodType expectedMethod, MeterSuspensionType expectedSuspension)
        {
            _parsedData.SoundingWeight = soundingWeight;
            var dischargeSection = GetParsedDischargeSection(_parsedData);

            Assert.That(dischargeSection.DeploymentMethod, Is.EqualTo(expectedMethod));
            Assert.That(dischargeSection.MeterSuspension, Is.EqualTo(expectedSuspension));
        }
 public MeterSuspensionAndDeploymentPair(MeterSuspensionType meterSuspension, DeploymentMethodType deploymentMethod)
 {
     MeterSuspension  = meterSuspension;
     DeploymentMethod = deploymentMethod;
 }
 private static MeterSuspensionAndDeploymentPair CreateMeterSuspensionWithBoatDeployment(
     MeterSuspensionType meterSuspensionType)
 {
     return(new MeterSuspensionAndDeploymentPair(meterSuspensionType, DeploymentMethodType.Boat));
 }
Esempio n. 5
0
 private static void AssertDischargeSectionHasExpectedSuspensionAndDeploymentType(ManualGaugingDischargeSection dischargeSection,
                                                                                  MeterSuspensionType meterSuspensionType, DeploymentMethodType expectedMeterAndDeploymentType)
 {
     Assert.That(dischargeSection.MeterSuspension, Is.EqualTo(meterSuspensionType));
     Assert.That(dischargeSection.DeploymentMethod, Is.EqualTo(expectedMeterAndDeploymentType));
 }