Example #1
0
        public void CanGetRSSFeed()
        {
            // Establish Context
            RSSFeed rSSFeedToExpect =
                RSSFeedInstanceFactory.CreateValidTransientRSSFeed();

            rSSFeedRepository.Expect(r => r.Get(1))
            .Return(rSSFeedToExpect);

            // Act
            RSSFeed rSSFeedRetrieved =
                rSSFeedManagementService.Get(1);

            // Assert
            rSSFeedRetrieved.ShouldNotBeNull();
            rSSFeedRetrieved.ShouldEqual(rSSFeedToExpect);
        }