• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / FluentCommand / 6648415992

26 Oct 2023 01:49AM UTC coverage: 51.645% (+0.1%) from 51.515%
6648415992

push

github

pwelter34
Update InsertBuilder.cs

981 of 2442 branches covered (0.0%)

Branch coverage included in aggregate %.

2896 of 5065 relevant lines covered (57.18%)

156.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/FluentCommand/Query/QueryStatement.cs
1
namespace FluentCommand.Query;
2

3
/// <summary>
4
/// class defining a sql query
5
/// </summary>
6
/// <seealso cref="FluentCommand.Query.IQueryStatement" />
7
public class QueryStatement : IQueryStatement
8
{
9
    /// <summary>
10
    /// Initializes a new instance of the <see cref="QueryStatement"/> class.
11
    /// </summary>
12
    /// <param name="statement">The sql statement.</param>
13
    /// <param name="parameters">The query parameters.</param>
14
    /// <exception cref="System.ArgumentException">statement cannot be null or whitespace. - statement</exception>
15
    /// <exception cref="System.ArgumentNullException">parameters cannot be null</exception>
16
    public QueryStatement(string statement, IReadOnlyCollection<QueryParameter> parameters)
17
    {
18
        if (string.IsNullOrWhiteSpace(statement))
85!
19
            throw new ArgumentException($"'{nameof(statement)}' cannot be null or whitespace.", nameof(statement));
×
20

21
        if (parameters is null)
85!
22
            throw new ArgumentNullException(nameof(parameters));
×
23

24
        Statement = statement;
25
        Parameters = parameters;
26
    }
85✔
27

28
    /// <inheritdoc />
29
    public string Statement { get; }
30

31
    /// <inheritdoc />
32
    public IReadOnlyCollection<QueryParameter> Parameters { get; }
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc