public void CheckRepositoryForCreatedParties() { var parties = _system.GetAllParties(); Assert.Equal(5, parties.Count); }
public void Seed() { _system.CreateMember("87052060389", "Pelle"); _system.CreateMember("87052234324", "Danny"); _system.CreateMember("87123523122", "Bobby"); _system.CreateMember("87052012312", "Katrine"); _system.CreateMember("87063234112", "Mikael"); var winner1 = _system.GetAllParties().First(player => player.Name == "Danny"); var winner2 = _system.GetAllParties().First(player => player.Name == "Danny"); var winner3 = _system.GetAllParties().First(player => player.Name == "Danny"); var winner4 = _system.GetAllParties().First(player => player.Name == "Pelle"); var winner5 = _system.GetAllParties().First(player => player.Name == "Katrine"); var winner6 = _system.GetAllParties().First(player => player.Name == "Katrine"); match1 = CreateMatch("Pelle", 220, 300, 95, "Danny", 220, 300, 102, winner1); match2 = CreateMatch("Danny", 220, 167, 112, "Mikael", 88, 80, 89, winner2); match3 = CreateMatch("Danny", 220, 300, 70, "Bobby", 77, 56, 92, winner3); match4 = CreateMatch("Pelle", 280, 300, 140, "Mikael", 300, 282, 75, winner4); match5 = CreateMatch("Katrine", 270, 220, 190, "Pelle", 220, 195, 70, winner5); match6 = CreateMatch("Mikael", 110, 76, 73, "Katrine", 210, 198, 178, winner6); }