예제 #1
0
        public void MultiDocumentQuery_WhereNodeGUIDEquals_Will_Add_A_New_Where_Condition()
        {
            var fixture  = new Fixture();
            var nodeGUID = fixture.Create <Guid>();

            var sut = new MultiDocumentQuery();

            var result = sut.WhereNodeGUIDEquals(nodeGUID);

            var param = result.Parameters.Single();

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