Skip to content

Commit 49d925b

Browse files
Per Kopsperkops
authored andcommitted
style: break down parameters in 2 files
1 parent dcaa4e0 commit 49d925b

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

src/Atc.Kusto/Extensions/DataRowExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public static class DataRowExtensions
1616
/// <param name="row">The data row to map.</param>
1717
/// <param name="options">Optional JSON serializer options. If not provided, default options with enum string conversion and case-insensitive property matching will be used.</param>
1818
/// <returns>An instance of type <typeparamref name="T"/> created from the DataRow.</returns>
19-
public static T? MapDataRow<T>(this DataRow row, JsonSerializerOptions? options = null)
19+
public static T? MapDataRow<T>(
20+
this DataRow row,
21+
JsonSerializerOptions? options = null)
2022
{
2123
ArgumentNullException.ThrowIfNull(row);
2224

test/Atc.Kusto.Tests/Handlers/Internal/BufferedStreamingQueryHandlerTests.cs

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ internal static ProgressiveDataSet BuildPrimaryResult(params string[] values)
258258

259259
internal sealed class SchemaFrameStub : ProgressiveDataSetDataTableSchemaFrame
260260
{
261-
public SchemaFrameStub(int id, DataTable schema)
261+
public SchemaFrameStub(
262+
int id,
263+
DataTable schema)
262264
{
263265
FrameType = FrameType.TableHeader;
264266
TableId = id;
@@ -282,7 +284,9 @@ public SchemaFrameStub(int id, DataTable schema)
282284

283285
internal sealed class DataTableFrameStub : ProgressiveDataSetDataTableFrame
284286
{
285-
public DataTableFrameStub(int id, DataTable sourceTable)
287+
public DataTableFrameStub(
288+
int id,
289+
DataTable sourceTable)
286290
{
287291
FrameType = FrameType.DataTable; // Use DataTable frame type to match handler's expectations
288292
TableId = id;
@@ -304,7 +308,10 @@ public DataTableFrameStub(int id, DataTable sourceTable)
304308

305309
internal sealed class CompletionFrameStub : ProgressiveDataSetCompletionFrame
306310
{
307-
public CompletionFrameStub(bool cancelled = false, bool hasErrors = false, Exception? ex = null)
311+
public CompletionFrameStub(
312+
bool cancelled = false,
313+
bool hasErrors = false,
314+
Exception? ex = null)
308315
{
309316
FrameType = FrameType.DataSetCompletion;
310317
Cancelled = cancelled;
@@ -428,10 +435,20 @@ public override IEnumerator GetEnumerator()
428435

429436
public override string GetDataTypeName(int ordinal) => "string";
430437

431-
public override long GetBytes(int ordinal, long dataOffset, byte[]? buffer, int bufferOffset, int length)
438+
public override long GetBytes(
439+
int ordinal,
440+
long dataOffset,
441+
byte[]? buffer,
442+
int bufferOffset,
443+
int length)
432444
=> throw new NotSupportedException();
433445

434-
public override long GetChars(int ordinal, long dataOffset, char[]? buffer, int bufferOffset, int length)
446+
public override long GetChars(
447+
int ordinal,
448+
long dataOffset,
449+
char[]? buffer,
450+
int bufferOffset,
451+
int length)
435452
=> throw new NotSupportedException();
436453

437454
public override bool GetBoolean(int ordinal)

0 commit comments

Comments
 (0)