public void AddTournamentTeamBracket_Save() { TournamentTeamBracketModel t = new TournamentTeamBracketModel() { BracketID = tournamentService.GetAllBrackets()[0].BracketID, TournamentTeamID = service.GetAllTournamentTeams()[0].TournamentTeamID, Seed = 1, }; service.AddTournamentTeamBracket(t); var result = unitOfWork.Save(); Assert.AreEqual(true, result); }
/// <summary> /// Deletes a single TournamentTeamBracket. /// </summary> /// <param name="tournamentTeamBracket"> The Id of the TournamentTeamBracket to delte. </param> public void DeleteTournamentTeamBracket(TournamentTeamBracketModel tournamentTeamBracket) { unitOfWork.TournamentTeamBracketRepo.DeleteEntity(tournamentTeamBracket); }
/// <summary> /// Updates a single TournamentTeamBracket. /// </summary> /// <param name="tournamentTeamBracket"> The model of the TournamentTeamBracket to update. </param> public void UpdateTournamentTeamBracket(TournamentTeamBracketModel tournamentTeamBracket) { unitOfWork.TournamentTeamBracketRepo.Update(tournamentTeamBracket); }
/// <summary> /// Adds a single TournamentTeamBracket. /// </summary> /// <param name="tournamentTeamBracket"> The model of the TournamentTeamBracket to add. </param> public void AddTournamentTeamBracket(TournamentTeamBracketModel tournamentTeamBracket) { unitOfWork.TournamentTeamBracketRepo.Add(tournamentTeamBracket); }