/// <summary> /// Creates and returns a <see cref="ISingleTypeMapper{T}" /> instance /// </summary> /// <param name="data">A <see cref="scheduleEndpoint" /> instance which the created <see cref="ISingleTypeMapper{ISportEventsSchedule}" /> will map</param> /// <returns>New <see cref="ISingleTypeMapper{ISportEventsSchedule}" /> instance</returns> public ISingleTypeMapper <EntityList <SportEventSummaryDTO> > CreateMapper(scheduleEndpoint data) { return(new SportEventsScheduleMapper(data)); }
/// <summary> /// Initializes a new instance of the <see cref="SportEventsScheduleMapper" /> class. /// </summary> /// <param name="data">A <see cref="scheduleEndpoint" /> instance containing schedule information</param> internal SportEventsScheduleMapper(scheduleEndpoint data) { Contract.Requires(data != null); _data = data; }
public void Setup() { _record = Deserializer.Deserialize(FileHelper.OpenFile(TestData.RestXmlPath, "events.xml")); }
/// <summary> /// Initializes a new instance of the <see cref="DateScheduleMapper" /> class. /// </summary> /// <param name="data">>A <see cref="scheduleEndpoint" /> instance containing schedule for a day</param> internal DateScheduleMapper(scheduleEndpoint data) { Contract.Requires(data != null); _data = data; }
/// <summary> /// Initializes a new instance of the <see cref="SportEventsScheduleMapper"/> class. /// </summary> /// <param name="data">A <see cref="scheduleEndpoint"/> instance containing schedule information</param> internal SportEventsScheduleMapper(scheduleEndpoint data) { Guard.Argument(data, nameof(data)).NotNull(); _data = data; }