Пример #1
0
        public void NewPatientTestWrong()
        {
            var pfvm = new PatientFormViewModel();

            pfvm.Patient      = new Patient();
            pfvm.Patient.TAJ  = "1";
            pfvm.Patient.Name = "x";
            pfvm.Patient.Born = "x";
            bool result = pfvm.Validate();

            Assert.IsFalse(result);
        }
Пример #2
0
        public void NewPatientTestRight()
        {
            var pfvm = new PatientFormViewModel();

            pfvm.Patient           = new Patient();
            pfvm.Patient.TAJ       = "123456789";
            pfvm.Patient.Name      = "Tatai Sándor";
            pfvm.Patient.BornPlace = "Budapest";
            bool result = pfvm.Validate();

            Assert.IsTrue(result);
        }