public void UpdateUserFeedTest()
        {
            //Arrange
            IFeedManager feedManager = new FeedManager(_database);

            //Act
            var unreadCount = new Random().Next(1000);
            const string url = "http://test.url.fake";
            var userFeed = new UserFeed
                {
                    Id = "ravenuserfeed/1",
                    Category = "updated category",
                    Name = "updated name",
                    UnreadCount = unreadCount,
                    Feed = new Feed
                        {
                            Id = "ravenfeed/1",
                            Url = url
                        },
                    RavenUserId = "ravenuser/1"
                };
            var response = feedManager.UpdateUserFeed(userFeed);

            //Assert
            Assert.AreEqual(ErrorLevel.None, response.Status.ErrorLevel, response.Status.ErrorMessage);
            var getFeedResponse = feedManager.GetUserFeedByUserIdAndUrl(new User {Id = "ravenuser/1"}, url);
            Assert.IsNotNull(getFeedResponse);
            Assert.AreEqual(ErrorLevel.None, getFeedResponse.Status.ErrorLevel, getFeedResponse.Status.ErrorMessage);
            Assert.IsNotNull(getFeedResponse.Data);
            Assert.IsNotNull(getFeedResponse.Data.Feed);
            Assert.AreEqual(url, getFeedResponse.Data.Feed.Url);
            Assert.AreEqual(unreadCount, getFeedResponse.Data.UnreadCount);
            Assert.AreEqual("updated category", getFeedResponse.Data.Category);
            Assert.AreEqual("updated name", getFeedResponse.Data.Name);
        }
        public void GetUserFeedByUserIdAndUrl()
        {
            //Arrange
            IFeedManager feedManager = new FeedManager(_database);

            //Act
            const string ravenUserId = "ravenuser/1";
            var user = new User
                {
                    Id = ravenUserId
                };
            const string url = "http://test.url.fake";
            var response = feedManager.GetUserFeedByUserIdAndUrl(user, url);

            //Assert
            Assert.IsNotNull(response);
            Assert.AreEqual(ErrorLevel.None, response.Status.ErrorLevel, response.Status.ErrorMessage);
            Assert.IsNotNull(response.Data);
            Assert.AreEqual(url, response.Data.Feed.Url);
            Assert.AreEqual(ravenUserId, response.Data.RavenUserId);
        }