public void TeamTestIsNotValidTeam() { var team = new Team("","", new List<int>()); Assert.IsFalse(team.IsValidTeam()); }
public void TeamTestIsValidTeam() { var team = new Team("Wildcats", "454545467", new List<int>()); Assert.IsTrue(team.IsValidTeam()); }
private void HandleBtnDone_Click(object sender, System.Windows.RoutedEventArgs e) { team = new Team(GetTeamName(), GetTeamContanct(), GetTeamPlayerIDs()); if (team.IsValidTeam()) { buttonAction = ButtonAction.DONE; modalTeam.Close(); } else { modalTeam.DisplayError(); } }