public void SuccessAddNewStepEvent() { EventStorePatientStepSchedulingService eventStepService = SetupEventStepService(); PatientStepSchedulingEvent stepEvent = eventStepService.Add(new PatientStepSchedulingEventDTO() { TriggerTime = DateTime.Now, StartSchedulingEventId = 1, UserAge = 35, UserGender = EventSourcingService.Model.Enum.Gender.Female, EventStep = EventSourcingService.Model.Enum.EventStep.Date, ClickEvent = EventSourcingService.Model.Enum.ClickEvent.Next }); Assert.True(eventStepService.Contain(stepEvent.Id)); }
public static PatientStepSchedulingEventDTO ToPatientStepSchedulingEventDTO(this PatientStepSchedulingEvent patientSchedulingEvent) { PatientStepSchedulingEventDTO patientSchedulingDTO = new PatientStepSchedulingEventDTO() { TriggerTime = patientSchedulingEvent.TriggerTime, StartSchedulingEventId = patientSchedulingEvent.StartSchedulingEventId, UserAge = patientSchedulingEvent.UserAge, UserGender = patientSchedulingEvent.UserGender, EventStep = patientSchedulingEvent.EventStep, ClickEvent = patientSchedulingEvent.ClickEvent }; return(patientSchedulingDTO); }