public RoundRobinGroupLayoutAssemblerTests() { tournament = Tournament.Create("GSL 2019"); roundRobinRound = tournament.AddRoundRobinRound() as RoundRobinRound; roundRobinGroup = RoundRobinGroup.Create(roundRobinRound); playerReferences = new List <PlayerReference>(); playerReferences.Add(PlayerReference.Create("Maru", tournament)); playerReferences.Add(PlayerReference.Create("Stork", tournament)); playerReferences.Add(PlayerReference.Create("Taeja", tournament)); playerReferences.Add(PlayerReference.Create("Rain", tournament)); playerReferences.Add(PlayerReference.Create("Bomber", tournament)); playerReferences.Add(PlayerReference.Create("FanTaSy", tournament)); playerReferences.Add(PlayerReference.Create("Stephano", tournament)); playerReferences.Add(PlayerReference.Create("Thorzain", tournament)); maruId = playerReferences[0].Id; storkId = playerReferences[1].Id; taejaId = playerReferences[2].Id; rainId = playerReferences[3].Id; bomberId = playerReferences[4].Id; fantasyId = playerReferences[5].Id; stephanoId = playerReferences[6].Id; thorzainId = playerReferences[7].Id; }
public void CanCreateGroup() { RoundRobinGroup roundRobinGroup = RoundRobinGroup.Create(roundRobinRound); roundRobinGroup.Should().NotBeNull(); roundRobinGroup.Id.Should().NotBeEmpty(); roundRobinGroup.Matches.Should().BeEmpty(); roundRobinGroup.RoundId.Should().Be(roundRobinRound.Id); roundRobinGroup.Round.Should().Be(roundRobinRound); }
protected override GroupBase AddGroup() { return(RoundRobinGroup.Create(this)); }