public void TestGetAll() { // Arrange ArticlesService service = Scope.Resolve <ArticlesService>(); // Act IEnumerable <Article> result = service.Get(); // Assert Assert.IsTrue(_articles.Except(result).Count() == 0); }
public void TestGetById() { // Arrange ArticlesService service = Scope.Resolve <ArticlesService>(); // Act Article result = service.Get(_articles.First().ArticleID); // Assert Assert.IsNotNull(result); }