public void CalendarDrillthroughWithParametersActionTest() { PageDocument report = TestHelper.GetReport("Calendar-DrillthroughWithParameters.rdlx"); TestingRenderingExtension renderer = new TestingRenderingExtension(); report.Render(renderer, null); ICalendar calendar; // calendar1 (default values) calendar = (ICalendar)renderer.GetReportItem("Calendar1"); Assert.IsNotNull(calendar); foreach (Appointment appointment in calendar.Appointments) { Assert.IsNotNull(appointment.Action); Assert.AreEqual(ActionType.DrillThrough, appointment.Action.ActionType); Assert.IsNotNull(appointment.Action.Drillthrough); Assert.AreEqual(appointment.Value, appointment.Action.Drillthrough.ReportName); Assert.AreEqual(2, appointment.Action.Drillthrough.NumberOfParameters); foreach (DrillthroughParameter parameter in appointment.Action.Drillthrough.Parameters) { Assert.AreEqual(true, parameter.Omit); Assert.AreEqual("param", parameter.Name); Assert.AreEqual(appointment.Value, parameter.Value); } } }
public void CalendarBookmarklinkActionTest() { PageDocument report = TestHelper.GetReport("Calendar-Bookmarklink.rdlx"); TestingRenderingExtension renderer = new TestingRenderingExtension(); report.Render(renderer, null); ICalendar calendar; // calendar1 (default values) calendar = (ICalendar)renderer.GetReportItem("Calendar1"); Assert.IsNotNull(calendar); foreach (Appointment appointment in calendar.Appointments) { Assert.IsNotNull(appointment.Action); Assert.AreEqual(ActionType.BookmarkLink, appointment.Action.ActionType); Assert.AreEqual(appointment.Value, appointment.Action.BookmarkLink); } }