예제 #1
0
        public void ConvertModelToEntity_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var service            = new AppointmentService();
            AppointmentModel model = GetTestModel();

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

            // Assert
            Assert.IsNotNull(entity);
            Assert.AreEqual(model.DateTime, entity.dateTime);
        }