Beispiel #1
0
        public void GetAllElements_RequestOfCollection_CollectionIsNotNull()
        {
            var mock = new Mock <IUnitOfWork>();

            mock.Setup(a => a.Topics.GetAllElements()).Returns(new List <Topic>());
            var service = new TopicService(mock.Object);

            var result = service.GetAllElements() as IEnumerable <TopicDTO>;

            Assert.IsNotNull(result);
        }