public List <AlertFinalListStructure> RingAlarmWebMethod( )
        {
            List <AlertFinalListStructure> finalResultList = new List <AlertFinalListStructure>();
            PatientVitalsProcessor         processor       = new PatientVitalsProcessor();

            finalResultList = processor.GenerateAndValidate(listOfPatients);
            return(finalResultList);
        }
        public void Given_PatientInfo_When_GenerateAndValidate_Invoked_Then_Expected_NotNull_AlertFinalListStructure()
        {
            List <PatientInfo> patientList = new List <PatientInfo>();
            PatientInfo        pat1        = new PatientInfo();

            pat1.PatientID = 1;
            patientList.Add(pat1);
            List <AlertFinalListStructure> finalResult = new List <AlertFinalListStructure>();
            PatientVitalsProcessor         processor   = new PatientVitalsProcessor();

            finalResult = processor.GenerateAndValidate(patientList);
            Assert.IsNotNull(finalResult);
        }
Пример #3
0
        static void Main(string[] args)
        {
            List <bool>        finalResult   = new List <bool>();
            List <PatientInfo> listOfPatient = new List <PatientInfo>();
            PatientInfo        pat1          = new PatientInfo();

            pat1.PatientID = 1;
            listOfPatient.Add(pat1);
            PatientInfo pat2 = new PatientInfo();

            pat2.PatientID = 2;
            listOfPatient.Add(pat2);
            PatientInfo pat3 = new PatientInfo();

            pat2.PatientID = 3;
            listOfPatient.Add(pat3);
            PatientVitalsProcessor p = new PatientVitalsProcessor();
        }
        public void Given_TwoPatientInfo_When_GenerateAndValidate_Invoked_Then_Expected_TwoEntryFinalList()
        {
            List <PatientInfo> listOfPatients = new List <PatientInfo>();
            PatientInfo        pat1           = new PatientInfo();

            pat1.PatientID = 1;
            listOfPatients.Add(pat1);
            PatientInfo pat2 = new PatientInfo();

            pat2.PatientID = 2;
            listOfPatients.Add(pat2);
            List <AlertFinalListStructure> finalResult = new List <AlertFinalListStructure>();
            PatientVitalsProcessor         processor   = new PatientVitalsProcessor();

            finalResult = processor.GenerateAndValidate(listOfPatients);
            int actualValue   = finalResult.Count;
            int ExpectedValue = 2;

            Assert.AreEqual(ExpectedValue, actualValue);
        }