public void CheckCompetitionInformation()
        {
            //Create lane
            var laneId = _system.CreateLane(1);
            var lane   = _system.GetLane(1);

            //Create match
            var matchId = _system.CreateMatch(roundList, lane);
            var match   = _system.GetMatch(matchId);

            //Create time period
            var timeperiod = new TimePeriod
            {
                Starttime = new DateTime(2017, 11, 01),
                Endtime   = new DateTime(2017, 11, 25)
            };

            matchList.Add(match);

            //Create Competition
            var competitionId = _system.CreateCompetition("Bästa Tävlingen", timeperiod, matchList);
            var competition   = _system.GetCompetition(competitionId);
            var matchRounds   = _system.GetMatch(matchId).Rounds;

            Assert.Equal("Bästa Tävlingen", competition.Name);
            Assert.Equal(3, matchRounds.Count);
            Assert.Equal(1, competition.Matches.Count);
        }
        public void CheckWinnerOfTheYear()
        {
            var matches = new List <Match>();

            matches.Add(match1);
            matches.Add(match2);
            matches.Add(match3);
            matches.Add(match4);
            matches.Add(match5);
            matches.Add(match6);

            TimePeriod timePeriod = new TimePeriod();

            timePeriod.Starttime = new DateTime(2017, 01, 05);
            timePeriod.Endtime   = new DateTime(2017, 12, 30);

            _system.CreateCompetition("Bengans All Star", timePeriod, matches);

            Assert.Equal("Danny", _system.GetWinnerOfTheYear(2017).Name);
        }