Пример #1
0
        public void Functional_GetDependants()
        {
            try
            {
                Demographics d = new Demographics();

                Patient p = new Patient(d);
                p.FirstName   = "Divyangbhai";
                p.LastName    = "Dankhara";
                p.HCN         = "1234567890AB";
                p.MInitial    = "A";
                p.DateOfBirth = "12111997";
                p.Sex         = "M";

                d.AddNewPatient(p);

                List <Patient> dp = d.GetDependants(p);

                if (!(dp == null))
                {
                    foreach (Patient a in dp)
                    {
                        if (!(a.HeadOfHouse == p.HCN))
                        {
                            Assert.Fail();
                        }
                    }
                }
            }
            catch (Exception)
            {
                Assert.Fail();
            }
        }
Пример #2
0
        public void Null_GetDependants()
        {
            try
            {
                Demographics d = new Demographics();

                d.GetDependants(null);
            }
            catch (Exception)
            {
                Assert.Fail();
            }
        }