public void GetPrimaryIDTest()
        {
            Wells.Well w = new HydroNumerics.Wells.Well("193.  125A");
            w.AddNewIntake(1);

            Plant         plant  = new Plant(2065);
            PumpingIntake Intake = new PumpingIntake(w.Intakes.First(), plant);
            int           actual;

            Assert.IsTrue(Reader.TryGetPrimaryID(Intake, plant, out actual));
            Assert.AreEqual(707, actual);
        }
Example #2
0
        public void GetPrimaryIDTest()
        {
            var wells  = R.ReadWellsInSteps();
            var plants = R.ReadPlants(wells);

            JupiterXLFastReader rw = new JupiterXLFastReader(@"..\..\..\TestData\AlbertslundNytFormat.mdb");

            Plant p = plants.First(var => var.PumpingIntakes.Count != 0);

            int id;

            Assert.IsTrue(rw.TryGetPrimaryID(p.PumpingIntakes.First(), p, out id));
            Assert.AreEqual(707, id);
        }