Пример #1
0
        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);
        }
Пример #2
0
 public Team Add(Team team)
 {
     context.Teams.Add(team);
     context.SaveChanges();
     return team;
 }