コード例 #1
0
 protected override TeamModel AddTeam()
 {
     EFTeamRepository teams = new EFTeamRepository { CreateContext = GetContext };
     var newTeam = new TeamModel { Name="Team1" };
     teams.Create(newTeam);
     return newTeam;
 }
コード例 #2
0
 private TeamModel CreateTeam()
 {
     EFTeamRepository teams = new EFTeamRepository { CreateContext = GetContext };
     var newTeam = new TeamModel { Name = "Team1" };
     teams.Create(newTeam);
     return newTeam;
 }