Example #1
0
        public void ConvertModelToEntity_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var          service         = new PatientService();
            PatientModel model           = GetTestModel();

            // Act
            patient entity = service.ConvertModelToEntity(model);

            // Assert
            Assert.IsNotNull(entity);
            Assert.AreEqual(model.Zehut, entity.zehut);
        }