/// <summary> /// Initializes a new instance of the <see cref="SimpleTeamProfileDTO"/> class /// </summary> /// <param name="record">A <see cref="simpleTeamProfileEndpoint"/> containing information about the profile</param> public SimpleTeamProfileDTO(simpleTeamProfileEndpoint record) { Guard.Argument(record, nameof(record)).NotNull(); Guard.Argument(record.competitor, nameof(record.competitor)).NotNull(); Competitor = new CompetitorDTO(record.competitor); }
/// <summary> /// Initializes a new instance of the <see cref="SimpleTeamProfileDTO" /> class /// </summary> /// <param name="record">A <see cref="simpleTeamProfileEndpoint" /> containing information about the profile</param> public SimpleTeamProfileDTO(simpleTeamProfileEndpoint record) { Contract.Requires(record != null); Contract.Requires(record.competitor != null); Competitor = new CompetitorDTO(record.competitor); }
/// <summary> /// Initializes a new instance of the <see cref="SimpleTeamProfileMapper"/> class. /// </summary> /// <param name="data">A <see cref="simpleTeamProfileEndpoint"/> instance containing simple team profile data</param> internal SimpleTeamProfileMapper(simpleTeamProfileEndpoint data) { Contract.Requires(data != null); _data = data; }
/// <summary> /// Initializes a new instance of the <see cref="SimpleTeamProfileMapper"/> class. /// </summary> /// <param name="data">A <see cref="simpleTeamProfileEndpoint"/> instance containing simple team profile data</param> internal SimpleTeamProfileMapper(simpleTeamProfileEndpoint data) { Guard.Argument(data, nameof(data)).NotNull(); _data = data; }