示例#1
0
        //It checks if there is any null in generated json

        public void Given_Patient_Id_When_GenerateVitalSignAsJson_Invoke_Then_Valid_Result_Asserted()
        {
            IPatientMonitor m_patientMonitor = Factory.GetPatientMonitor();
            string m_actualValue = m_patientMonitor.GenerateVitalSignAsJson("PatientId_23");
            string[] m_values = m_actualValue.Split(',');
            //It checks there should be 8 entity in the json string
            Assert.AreEqual(4, m_values.Length);

            foreach (string value in m_values)
            {
                string[] args = value.Split(':');
                if (args.Length != 2)
                {
                    Assert.Fail("Failed");
                }
            }
        }
示例#2
0
 public string GenerateVitalSignAsJson(string patientId)
 {
     return(m_patientMonitor.GenerateVitalSignAsJson(patientId));
 }