Ejemplo n.º 1
0
        public void RepoLadderTestsInactivateALadder()
        {
            List <Ladder> l = new List <Ladder>
            {
                new Ladder {
                    LadderID = 0, Active = true
                }
            };

            _ladderSet.Object.AddRange(l);
            ConnectMocksToDataStore(l);
            List <Ladder> expected = new List <Ladder>
            {
                new Ladder {
                    LadderID = 0, Active = false
                }
            };
            bool          result = _repo.InactivateLadder(0);
            List <Ladder> actual = _repo.GetAllLadders();

            Assert.IsTrue(result);
            CollectionAssert.AreEqual(expected, actual);
        }