Пример #1
0
        public void GetRegionsNullTest()
        {
            List <Region> regions    = new List <Region>();
            var           mockRegion = new Mock <IRepository <Region> >(MockBehavior.Strict);

            mockRegion.Setup(p => p.GetAll()).Returns(regions);
            var logic = new RegionLogic(mockRegion.Object);

            var result = logic.GetRegions();

            mockRegion.VerifyAll();
            Assert.IsTrue(result.SequenceEqual(regions));
        }