public void SuccessGetAllStartEvent() { EventStorePatientStartSchedulingService eventStartService = SetupEventStartService(); IEnumerable <PatientStartSchedulingEvent> startEvents = eventStartService.GetAll(); Assert.NotEmpty(startEvents); }
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)); }