Ejemplo n.º 1
0
        public void RepositoryTestsEnsureICanGetAllTeams()
        {
            List <MainTeam> expected = new List <MainTeam>()
            {
                new MainTeam {
                    MainTeamID = 1, TeamName = "FS1"
                },
                new MainTeam {
                    MainTeamID = 2, TeamName = "GTXT"
                }
            };

            _teamSet.Object.AddRange(expected);
            ConnectMocksToDataStore(expected);

            var actual = _repo.GetAllMainTeams();

            Assert.AreEqual(1, actual[0].MainTeamID);
            CollectionAssert.AreEqual(expected, actual);
        }