예제 #1
0
        public void RepoTeamTestsUpdateMainTeamWebsite()
        {
            List <MainTeam> db = new List <MainTeam>
            {
                new MainTeam {
                    MainTeamID = 0, Website = "http://.com"
                }
            };

            _teamSet.Object.AddRange(db);
            ConnectMocksToDataStore(db);
            string          expected = "http://";
            bool            result   = _repo.UpdateMainTeamWebsite(0, "http://");
            List <MainTeam> actual   = _repo.GetAllMainTeams();

            Assert.IsTrue(result);
            Assert.AreEqual(expected, actual[0].Website);
        }