using ActivityAPI.Models;
using System.Collections.Generic;
public class DummyGenerator
public List<ActionMethod> GetAllActionMethods()
var ActionMethods = new List<ActionMethod>();
var Writing = new ActionMethod { Name = "Writing" };
var Talking = new ActionMethod { Name = "Talking" };
var Acting = new ActionMethod { Name = "Acting" };
ActionMethods.Add(Writing);
ActionMethods.Add(Talking);
ActionMethods.Add(Acting);
public User GenerateUser(ICollection<Team> TeamsWhichTheUserIn)
var UserNameListFile = File.ReadAllLines(@"/Misc/UserNameList.txt");
var UserNames = new List<string>(UserNameListFile);
Random random = new Random();
var randomedNumber = random.Next(UserNames.Count);
UserName = UserNames[randomedNumber],
Teams = TeamsWhichTheUserIn
public Team GenerateTeam(ICollection<User> UserInTheTeam, ICollection<Match> PlayedMatches)
var TeamNameListFile = File.ReadAllLines(@"/Misc/TeamNameList.txt");
var TeamNames = new List<string>(TeamNameListFile);
Random random = new Random();
var randomedNumber = random.Next(TeamNames.Count);
Name = TeamNames[randomedNumber],
public Match GenerateMatch(ICollection<Team> TeamsInTheMatch, ICollection<Round> RoundsInTheMatch)
DateTime time = DateTime.Now;
AllRoundsInMatch = RoundsInTheMatch
public Round GenerateRound(ActionMethod UsedActionMethod, int scoredPoint, Team scoredTeam)
var actionMethods = GetAllActionMethods();
Random random = new Random();
var randomedNumber = random.Next(actionMethods.Count);
var randomedScore = random.Next(3,5);
UsedActionMethod = actionMethods[randomedNumber],
ScoredPoint = randomedScore,