/// <summary>
 /// Creates and returns a <see cref="ISingleTypeMapper{T}" /> instance used to map <see cref="tournamentsEndpoint"/> instances to
 /// <see cref="EntityList{SportDTO}"/> instances
 /// </summary>
 /// <param name="data">A <see cref="tournamentsEndpoint" /> instance which the created <see cref="ISingleTypeMapper{T}" /> will map</param>
 /// <returns>The constructed <see cref="ISingleTypeMapper{T}" /> instance</returns>
 public ISingleTypeMapper <EntityList <SportDTO> > CreateMapper(tournamentsEndpoint data)
 {
     return(TournamentsMapper.Create(data));
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="TournamentsMapper"/> class.
        /// </summary>
        /// <param name="data">A <see cref="tournamentsEndpoint"/> instance containing tournaments data</param>
        protected TournamentsMapper(tournamentsEndpoint data)
        {
            Contract.Requires(data != null);

            _data = data;
        }
 /// <summary>
 /// Constructs and returns a new instance of the <see cref="ISingleTypeMapper{T}"/> instance used to map <see cref="tournamentsEndpoint"/> instances
 /// to <see cref="EntityList{SportDTO}"/> instances
 /// </summary>
 /// <param name="data">A <see cref="tournamentsEndpoint"/> instance containing tournaments data</param>
 /// <returns>a new instance of the <see cref="ISingleTypeMapper{T}"/> instance used to map <see cref="tournamentsEndpoint"/> instances
 /// to <see cref="EntityList{SportDTO}"/> instances</returns>
 internal static ISingleTypeMapper <EntityList <SportDTO> > Create(tournamentsEndpoint data)
 {
     return(new TournamentsMapper(data));
 }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TournamentsMapper"/> class.
        /// </summary>
        /// <param name="data">A <see cref="tournamentsEndpoint"/> instance containing tournaments data</param>
        protected TournamentsMapper(tournamentsEndpoint data)
        {
            Guard.Argument(data, nameof(data)).NotNull();

            _data = data;
        }