Example #1
0
        public void GetByExhibit()
        {
            // Prepare test data
            Article firstArticle = _articles.First();
            Exhibit ex           = DbFactory.CreateExhibit((item) => item.Articles = new[] { firstArticle });

            // Arrange
            ArticlesService service = Scope.Resolve <ArticlesService>();

            // Act
            IEnumerable <Article> result = service.GetByExhibit(ex.ExhibitID);

            // Assert
            Assert.IsNotNull(result.Any());
        }