public static desc_market GetDescMarket(desc_market baseMsg)
        {
            var newMsg = new desc_market
            {
                id          = baseMsg.id,
                name        = "Market " + SR.S1000,
                description = "Description " + SR.S1000,
                variant     = baseMsg.variant,
                mappings    = new mappingsMapping[baseMsg.mappings.Length],
                outcomes    = new desc_outcomesOutcome[baseMsg.outcomes.Length],
                specifiers  = new desc_specifiersSpecifier[baseMsg.specifiers.Length]
            };

            baseMsg.mappings.CopyTo(newMsg.mappings, 0);
            baseMsg.outcomes.CopyTo(newMsg.outcomes, 0);
            baseMsg.specifiers.CopyTo(newMsg.specifiers, 0);
            foreach (var m in newMsg.outcomes)
            {
                m.name        = "Outcome " + SR.S();
                m.description = "Desc " + SR.S();
            }
            foreach (var m in newMsg.specifiers)
            {
                m.name        = "Specifier name " + SR.S();
                m.description = "Desc " + SR.S();
            }
            return(newMsg);
        }
 public static desc_specifiersSpecifier GetDescSpecifiersSpecifier()
 {
     return(new desc_specifiersSpecifier
     {
         type = "Type " + SR.S100,
         name = "Name " + SR.S(),
         description = "Description " + SR.S1000
     });
 }
 public static desc_outcomesOutcome GetDescOutcomesOutcome(int id = 0)
 {
     return(new desc_outcomesOutcome
     {
         id = id == 0 ? SR.Urn("market").ToString() : SR.Urn(id, "market").ToString(),
         name = "Name " + SR.S(),
         description = "Description " + SR.S1000
     });
 }
        public static tournamentExtended GetTournamentExtended(int id = 0, int subItemCount = 0)
        {
            if (subItemCount == 0)
            {
                subItemCount = SR.I(20);
            }
            var msg = new tournamentExtended
            {
                id                     = id == 0 ? SR.Urn("tournament").ToString() : SR.Urn(id, "tournament").ToString(),
                name                   = "Tournament name " + SR.S(1000),
                scheduled              = DateTime.Now,
                scheduledSpecified     = true,
                scheduled_end          = DateTime.Today,
                scheduled_endSpecified = true,
                category               = GetCategory(),
                sport                  = GetSport(),
                tournament_length      = GetTournamentLength(),
                current_season         = GetCurrentSeason(),
                season_coverage_info   = GetSeasonCoverageInfo(),
                competitors            = GetTeamList(subItemCount).ToArray()
            };

            return(msg);
        }