public string Execute(IList <string> inputParameters) { //Validations businessLogicValidator.ValdateIfAnyTeamsExist(allTeams); //Operations var teamsToDisplay = allTeamsOperations.ShowAllTeamsToString(allTeams); return(string.Format(teamsToDisplay)); }
public string Execute(IList <string> inputParameters) { //Assign Values From List Of Parameters string teamName = inputParameters[0]; //Validations var inputTypeForChecking = "Team Name"; inputValidator.IsNullOrEmpty(teamName, inputTypeForChecking); businessLogicValidator.ValdateIfAnyTeamsExist(allTeams); businessLogicValidator.ValidateTeamExistance(allTeams, teamName); //Operations var teamToCheckHistoryFor = allTeams.AllTeamsList[teamName]; var teamActivityHistory = teamOperations.ShowTeamActivityToString(teamToCheckHistoryFor); return(string.Format(teamActivityHistory)); }