public PlayerTeamUnitTests() { PlayerTeamService = new PlayerTeamService(); Dartball.Data.DartballContext dartballContext = new Dartball.Data.DartballContext(); dartballContext.Migrate(); }
public EditPlayerViewModel(Guid?playerId, Guid?leagueId) { Service = new PlayerService(); PlayerTeam = new PlayerTeamService(); PlayerId = playerId; LeagueId = leagueId; }
public EditTeamPlayersViewModel(Guid teamId) { TeamId = teamId; PlayerTeam = new PlayerTeamService(); Team = new TeamService(); TeamPlayerLineup = new TeamPlayerLineupService(); }
public TeamPlayerLineupViewModel(Guid teamId) { TeamPlayerLineup = new TeamPlayerLineupService(); Team = new TeamService(); PlayerTeam = new PlayerTeamService(); TeamId = teamId; TeamName = string.Empty; HasChanges = true; }
public SelectTeamPlayerViewModel(Guid teamId) { PlayerTeam = new PlayerTeamService(); Player = new PlayerService(); TeamId = teamId; }
public AddTeamLineupPlayer(Guid teamId) { TeamId = teamId; PlayerTeam = new PlayerTeamService(); TeamPlayerLineup = new TeamPlayerLineupService(); }