Beispiel #1
0
        public void AddFeedToCollection()
        {
            ResetData();
            DBContentCollection contentCollection = new DBContentCollection();
            Feed feed = new Feed();

            var id = 1;

            contentCollection.ContentCollectionId = id;
            feed.URL = "http";

            mockContentCollections.Setup(a => a.FindById(id)).Returns(contentCollection);

            bool result = ContO.AddFeedToCollection(id, feed);

            Assert.AreEqual(true, result);
        }