public void list_prerequisites()
        {
            //setup
            var handler = CreateHandler();
            var request = new ListEventPrerequisitesRequest()
            {
                EventId = 1
            };

            //act
            var response = HandleRequest<ListEventPrerequisitesResponse>(handler, request);

            //assert
            List<EventPrerequisiteDto> prerequisites = new List<EventPrerequisiteDto>(response.EventPrerequisites);

            Assert.IsNotNull(response.EventPrerequisites);
            Assert.AreEqual(2, prerequisites.Count);
            Assert.AreEqual(prerequisites[1].Id, 2);
            Assert.AreEqual(prerequisites[1].AssociatedEventId.Value, 3);
        }
 private static List<EventPrerequisiteDto> GetEventPrerequisites(EventAdminDetailView parent, int eventId)
 {
     var request = new ListEventPrerequisitesRequest() { EventId = eventId };
     return parent.ProcessRequest<ListEventPrerequisitesResponse>(request).EventPrerequisites.ToList();
 }