예제 #1
0
        public void Extensions_Should_ReturnExecutable_When_DBSet()
        {
            // arrange
            // act
            IExecutable <Author> executable = _authors.AsExecutable();

            // assert
            Assert.IsType <QueryableExecutable <Author> >(executable);
            executable.Print().MatchSnapshot();
        }
    public void Extensions_Should_ReturnEntityFrameworkExecutable_When_DBSet()
    {
        // arrange
        // act
        IExecutable <Author> executable = _context.Authors.AsExecutable();

        // assert
        Assert.IsType <EntityFrameworkExecutable <Author> >(executable);
        executable.Print().MatchSnapshot();
    }