public void GetAll_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var repository                 = new AppointmentTestRepository(context);
            var hitchayvutService          = new HitchayvutService();
            var testResultValueTextService = new TestResultValueTextService();
            var service = new AppointmentTestService(repository, hitchayvutService, testResultValueTextService);

            // Act
            IEnumerable <AppointmentTestModel> result = service.GetAll();

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(context.appointment_test.Count(), result.Count());
        }
        public void GetAllFilterByAppointment_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var repository                 = new AppointmentTestRepository(context);
            var hitchayvutService          = new HitchayvutService();
            var testResultValueTextService = new TestResultValueTextService();
            var service       = new AppointmentTestService(repository, hitchayvutService, testResultValueTextService);
            int appointmentId = 1;

            // Act
            IEnumerable <AppointmentTestModel> result = service.GetAllFilterByAppointmentId(appointmentId);

            // Assert
            Assert.AreEqual(context.appointment_test.Where(x => x.appointmentId == appointmentId).Count(), result.Count());
            Assert.AreEqual(result.Where(x => x.AppointmentId == appointmentId).Count(), result.Count());
        }
        public void GetById_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var repository                 = new AppointmentTestRepository(context);
            var hitchayvutService          = new HitchayvutService();
            var testResultValueTextService = new TestResultValueTextService();
            var service = new AppointmentTestService(repository, hitchayvutService, testResultValueTextService);
            int id      = 1;

            // Act
            AppointmentTestModel result = service.GetById(id);

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(id, result.Id);
        }