Пример #1
0
        public void AlterPatientInfo_ShouldAlter()
        {
            Patient oldPatient = new Patient("Foo", "To alter");

            _controller.AddPatient(oldPatient);

            Assert.Equal(oldPatient, _controller.GetPatient(oldPatient.Id));

            Patient newPatientExpected = new Patient("Foo", "Altered")
            {
                Id = oldPatient.Id
            };

            _controller.AlterPatientInfo(oldPatient, newPatientExpected);
            Patient newPatientActual = _controller.GetPatient(oldPatient.Id);

            Assert.Equal(newPatientExpected, newPatientActual);
        }