Exemplo n.º 1
0
        public void Should_set_priority_in_accordance_with_METTS(int instection, int rr, int pox, int hr, int bp, int rls, string temperature, int expectedPriority)
        {
            var list = new List <Patient> {
                new Patient
                {
                    BP          = bp,
                    HR          = hr,
                    Inspection  = instection,
                    Temperature = temperature,
                    RR          = rr,
                    POX         = pox,
                    RLS         = rls
                }
            };

            var returnList = Priority.CountPriorityBasedOnMETTS(list);

            Assert.AreEqual(returnList.First().Priority, expectedPriority, $"Should be priority {expectedPriority}, but was {returnList.First().Priority}");
        }