Exemplo n.º 1
0
        public void RepoGamerTestsDeleteGamerByID()
        {
            List <Gamer> gamerdb = new List <Gamer>
            {
                new Gamer {
                    GamerID = 0, Active = true
                },
                new Gamer {
                    GamerID = 1, Active = true
                }
            };

            _gamerSet.Object.AddRange(gamerdb);
            ConnectMocksToDataStore(gamerdb);
            Gamer expected = new Gamer {
                GamerID = 0, Active = false
            };
            bool  testcall = _repo.DeleteGamerById(0);
            Gamer actual   = _repo.GetGamerById(0);

            Assert.AreEqual(expected, actual);
            Assert.IsTrue(testcall);
        }