Пример #1
0
        public void Test2()
        {
            var f1 = new ProcessFlowHelper.Implementation.Flow();

            f1.RatedFlow = 10;
            var f2 = new ProcessFlowHelper.Implementation.Flow();

            f2.RatedFlow = 20;
            var    medi    = new Medium();
            Pump   jetpump = new Pump(f1, 20);
            Blower blower  = new Blower(98, 90, f2);

            blower.SetTagNumber("AR-001");
            jetpump.SetTagNumber("P-002");
            jetpump.SetDenomination("Jetpump for equalization tank");
            var eqtankunit = new ProcessUnit();

            eqtankunit.AddEquipment(jetpump);
            eqtankunit.AddEquipment(blower);
            eqtankunit.SetDenomination("U-001");
            eqtankunit.SetDenomination("Equalization tank process unit");
            Assert.AreEqual("P-002", eqtankunit.ListSubEquipment[0].TagNumber);
            Assert.AreEqual("AR-001", eqtankunit.ListSubEquipment[1].TagNumber);
            Assert.AreEqual(500, eqtankunit.InstalledPower);
        }
Пример #2
0
        public void Test3()
        {
            var f1 = new ProcessFlowHelper.Implementation.Flow();

            f1.RatedFlow = 10;
            Pump jetpump = new Pump(f1, 20);

            CoarseScreen cs         = new CoarseScreen(f1, 1);
            var          eqtankunit = new ProcessUnit();

            eqtankunit.AddEquipment(cs);
            eqtankunit.AddEquipment(jetpump);
            eqtankunit.SetDenomination("U-001");
            eqtankunit.SetDenomination("Equalization tank process unit");

            Assert.AreEqual(253.7, eqtankunit.InstalledPower);
        }