Esempio n. 1
0
        public PlayerTeamUnitTests()
        {
            PlayerTeamService = new PlayerTeamService();

            Dartball.Data.DartballContext dartballContext = new Dartball.Data.DartballContext();
            dartballContext.Migrate();
        }
Esempio n. 2
0
 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;
 }
Esempio n. 6
0
 public AddTeamLineupPlayer(Guid teamId)
 {
     TeamId           = teamId;
     PlayerTeam       = new PlayerTeamService();
     TeamPlayerLineup = new TeamPlayerLineupService();
 }