示例#1
0
        public void AddPatient_With_Job_Invalid_OgrnCode()
        {
            testPatient.FamilyName       = "Иванов";
            testPatient.GivenName        = "Петр";
            testPatient.MiddleName       = "Федорович";
            testPatient.BirthDate        = new DateTime(1992, 05, 05);
            testPatient.IdPatientMIS     = "1234567";
            testPatient.Sex              = 1;
            testPatient.IdLivingAreaType = 1;

            PixService.JobDto job = new PixService.JobDto();
            job.CompanyName = "ssfs"; //Пожелание: проверка на "подлинность"
            job.OgrnCode    = "123344566";

            testPatient.Job = job;

            Assert.That(() => client.AddPatient(guid, idLPU, testPatient), Throws.ArgumentException);
        }
示例#2
0
        public void AddPatient_With_Job_DateEnd_LessThan_DateStart()
        {
            testPatient.FamilyName       = "Иванов";
            testPatient.GivenName        = "Петр";
            testPatient.MiddleName       = "Федорович";
            testPatient.BirthDate        = new DateTime(1992, 05, 05);
            testPatient.IdPatientMIS     = "1234567";
            testPatient.Sex              = 1;
            testPatient.IdLivingAreaType = 1;

            PixService.JobDto job = new PixService.JobDto();
            job.CompanyName = "ssfs";  //Пожелание: проверка на "подлинность"
            job.Sphere      = "wfw";   //Пожелание: проверка на "подлинность"
            job.Position    = "sfdsf"; //Пожелание: проверка на "подлинность"
            job.DateStart   = new DateTime(2017, 01, 21);
            job.DateEnd     = new DateTime(2017, 01, 20);

            testPatient.Job = job;

            Assert.That(() => client.AddPatient(guid, idLPU, testPatient), Throws.ArgumentException);
        }