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

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

            //assert
            Assert.IsNotNull(response);
            Assert.IsNotNull(response.EventOccurrences);
            Assert.AreEqual(1, response.EventOccurrences.Count());

            var theOccurrence = response.EventOccurrences.Single();
            Assert.AreEqual(1, theOccurrence.EventOccurrenceDatesCount);
            Assert.AreEqual(150, theOccurrence.EffectiveCost);
            Assert.AreEqual("John", theOccurrence.Presenter);
            Assert.AreEqual(1, theOccurrence.OrgUnitId);
            Assert.AreEqual(true, theOccurrence.IsEnabled);

            var expectedStartDate = new DateTime(2001,01,15,12,0,0);
            Assert.AreEqual(expectedStartDate, theOccurrence.StartDate);

            var expectedEndDate = new DateTime(2001, 01, 15, 15, 0, 0);
            Assert.AreEqual(expectedEndDate, theOccurrence.EndDate);
        }
        private ListEventOccurrencesResponse QueryData(int eventId)
        {
            var request = new ListEventOccurrencesRequest()
            {
                EventId = eventId,
                IncludeCanceled = GetCheckBoxValue("Cancelled"),
                IncludeDisabled = GetCheckBoxValue("Disabled"),
                IncludeExpired = GetCheckBoxValue("Expired"),
                SortBySeries = GetCheckBoxValue("Ongoing")
            };

            return ProcessRequest<ListEventOccurrencesResponse>(request);
        }