public void AddMatch_Save() { int tournamentId = service.GetAllTournaments()[0].TournamentID; MatchModel match = new MatchModel() { BracketID = service.GetAllBracketsInTournament(tournamentId)[0].BracketID, ChallengerID = service.GetAllUsersInTournament(tournamentId)[0].TournamentUserID, DefenderID = service.GetAllUsersInTournament(tournamentId)[1].TournamentUserID, MatchNumber = 1 }; service.AddMatch(match); var result = unitOfWork.Save(); Assert.AreEqual(true, result); }
public void CreateMatch_ValidTeam_MatchCreated() { tournamentService.AddMatch(tournamentA, blue, white); }