internal CcfImpl(CcfResponseDTO ccfResponseDto) { Guard.Argument(ccfResponseDto, nameof(ccfResponseDto)).NotNull(); Ccf = ccfResponseDto.Ccf; var sportCcfDetails = ccfResponseDto.SportCcfDetails ?? new List <Anonymous>(); SportCcfDetails = sportCcfDetails.Select(d => new SportCcf(d)).ToList(); }
/// <summary> /// Initializes a new instance of the <see cref="CcfMapper"/> class /// </summary> /// <param name="data">A <see cref="CcfResponseDTO"/> instance containing data used to construct <see cref="CcfImpl"/> instance</param> internal CcfMapper(CcfResponseDTO data) { Guard.Argument(data, nameof(data)).NotNull(); _data = data; }