Beispiel #1
0
        public void MultiDocumentQuery_WhereNodeIDEquals_Will_Add_A_New_Where_Condition()
        {
            var fixture = new Fixture();
            int nodeID  = fixture.Create <int>();

            var sut = new MultiDocumentQuery();

            var result = sut.WhereNodeIDEquals(nodeID);

            var param = result.Parameters.Single();

            param.Name.Should().Be("@NodeID");
            param.Value.Should().Be(nodeID);
            result.WhereCondition.Should().Be($"[NodeID] = @NodeID");
        }