コード例 #1
0
    public void Can_Build_SelectCommand_From_SelectCommandBuilder_With_Distinct_Clause()
    {
        // Arrange
        var command = new SelectCommandBuilder();

        // Act
        var actual = command
                     .DistinctValues()
                     .From("Table")
                     .Select("Field1", "Field2")
                     .Build();

        // Assert
        actual.CommandText.Should().Be("SELECT DISTINCT Field1, Field2 FROM Table");
    }