public void Add() { var newTeam = new Team { Id = 4, Name = "Arroceros F.C", City = "Coro", Country = "Venezuela"}; mockRepository.Object.Add(newTeam); //Reconteo de votos :) var teamCount = mockRepository.Object.GetAll().Count; Assert.AreEqual(4, teamCount); }
public Team Add(Team team) { context.Teams.Add(team); context.SaveChanges(); return team; }