Пример #1
0
        public void GetAllFilterByCurrent_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var repository = new TitleRepository(context);

            // Act
            IEnumerable <title> result = repository.GetAllFilterByCurrent();

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(context.title.Where(x => x.isCurrent).Count(), result.Count());
            Assert.AreEqual(result.Where(x => x.isCurrent).Count(), result.Count());
        }