public void GetNextStepStatistic()
        {
            EventStorePatientStepSchedulingService eventStepService         = SetupEventStepService();
            SchedulingStepsStatisticDTO            schedulingStepsStatistic = eventStepService.SchedulingStepsStatistic();

            Assert.Equal(7, schedulingStepsStatistic.NumberOfNextSteps);
        }
コード例 #2
0
        public SchedulingStepsStatisticDTO SchedulingStepsStatistic()
        {
            SchedulingStepsStatisticDTO schedulingStepsStatisticDTO = new SchedulingStepsStatisticDTO();

            schedulingStepsStatisticDTO.NumberOfClosedScheduling = _patientSchedulingEventRepository.GetAll(e => e.ClickEvent == ClickEvent.Close).Count();
            schedulingStepsStatisticDTO.NumberOfNextSteps        = _patientSchedulingEventRepository.GetAll(e => e.ClickEvent == ClickEvent.Next).Count();
            schedulingStepsStatisticDTO.NumberOfPreviousSteps    = _patientSchedulingEventRepository.GetAll(e => e.ClickEvent == ClickEvent.Previous).Count();
            schedulingStepsStatisticDTO.NumberOfSteps            = _patientSchedulingEventRepository.GetAll().Count();

            return(schedulingStepsStatisticDTO);
        }