Пример #1
0
        public void DbQueriesExtensions_ApplySpecification_ReturnsAllList()
        {
            var emptySpectification = new EmptySpectification <SpectificationTestEntity>();

            var result = SpectificationTestEntityList.AsQueryable()
                         .ApplySpecification(emptySpectification)
                         .ToList();

            result.Should().HaveCount(SpectificationTestEntityList.Count);
        }
Пример #2
0
        public void DbQueriesExtensions_ApplySpecificationShouldBeImplementOnlyClass_ReturnsException()
        {
            var result = new EmptySpectification <SpectificationTestEntity>();

            result.Should().BeAssignableTo <EmptySpectification <SpectificationTestEntity> >();
        }