Exemplo n.º 1
0
        //It checks if there is any null in generated json

        public void Given_Patient_Id_When_GenerateVitalSignAsJson_Invoke_Then_Valid_Result_Asserted()
        {
            PatientMonitor m_patientMonitor = new PatientMonitor();
            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(8, m_values.Length);

            foreach (string value in m_values)
            {
                if (string.IsNullOrEmpty(value))
                {
                    Assert.Fail("Failed");
                }
            }
        }
Exemplo n.º 2
0
 public string GenerateVitalSignAsJson(string m_patientId)
 {
     return(m_patientMonitor.GenerateVitalSignAsJson(m_patientId));
 }