Example #1
0
        public void SuccessGetAllStartEvent()
        {
            EventStorePatientStartSchedulingService   eventStartService = SetupEventStartService();
            IEnumerable <PatientStartSchedulingEvent> startEvents       = eventStartService.GetAll();

            Assert.NotEmpty(startEvents);
        }
Example #2
0
        public void SuccessAddNewStartEvent()
        {
            EventStorePatientStartSchedulingService eventStartService = SetupEventStartService();
            PatientStartSchedulingEvent             startEvent        = eventStartService.Add(new PatientStartSchedulingEventDTO()
            {
                TriggerTime = DateTime.Now, UserAge = 35, UserGender = Gender.Female
            });

            Assert.True(eventStartService.Contain(startEvent.Id));
        }