public void FlowsOutTo(PrimaryEffluent Pe) { Pe.Q_DailyAveraged_CubicMeterPerDay = Pe_Q_DailyAveraged_CubicMeterPerDay; Pe.Q_DailyAveraged_LiterPerDay = Pe_Q_DailyAveraged_LiterPerDay; Pe.Tss_MgPerDay = Pe_Tss_MgPerDay; Pe.Tss_MgPerLiter = Pe_Tss_MgPerLiter; Pe.Bod5_MgPerDay = Pe_Bod5_MgPerDay; Pe.Bod5_MgPerLiter = Pe_Bod5_MgPerLiter; }
public void UC04_PstFlowsOutToPsAndPe() { Pst_C01 Pst_C01 = new Pst_C01(); PrimaryInfluent Pi = new PrimaryInfluent(); Pst_C01.SetPiQualityAndQuantity(Pi); //Pi.SetQualityAndQuantity(Pi_C01); PrimarySedimentationTank Pst = new PrimarySedimentationTank(); Pst_C01.SetPstCapability(Pst); //Pst.SetCapability(C01); Pst.FlowsInFrom(Pi); Pst.TreatmentProcess(); PrimarySludge Ps = new PrimarySludge(); Pst.FlowsOutTo(Ps); PrimaryEffluent Pe = new PrimaryEffluent(); Pst.FlowsOutTo(Pe); //TODO: Encapsulate C01 Class to Stable All UC Tests Assert.AreEqual(720f, Ps.Tss_KgPerDay); Assert.AreEqual(360f, Ps.Bod5_KgPerDay); Assert.AreEqual(35.9f, Ps.Q_DailyAveraged_CubicMeterPerDay, 0.1); Assert.AreEqual(5964.1f, Pe.Q_DailyAveraged_CubicMeterPerDay, 0.1); Assert.AreEqual(80.5f, Pe.Tss_MgPerLiter, 0.1); Assert.AreEqual(140.8f, Pe.Bod5_MgPerLiter, 0.1); Assert.AreEqual(720f, Ps.Tss_KgPerDay); Assert.AreEqual(360f, Ps.Bod5_KgPerDay); Assert.AreEqual(35.9f, Ps.Q_DailyAveraged_CubicMeterPerDay, 0.1); Assert.AreEqual(5964.1f, Pe.Q_DailyAveraged_CubicMeterPerDay, 0.1); Assert.AreEqual(80.5f, Pe.Tss_MgPerLiter, 0.1); Assert.AreEqual(140.8f, Pe.Bod5_MgPerLiter, 0.1); }