Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused
  • Loading branch information
hjgraca committed Oct 13, 2025
commit 1df5b3aabde45efdf3a9327806d6f2baa45030ed
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@


using System;
using System.Runtime.CompilerServices;
using System.Text.Json;
using System.Text.Json.Serialization;
using AWS.Lambda.Powertools.BatchProcessing.Exceptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Amazon.Lambda.DynamoDBEvents;
using Amazon.Lambda.KinesisEvents;
using Amazon.Lambda.SQSEvents;
using AWS.Lambda.Powertools.BatchProcessing.DynamoDb;
using AWS.Lambda.Powertools.BatchProcessing.Exceptions;
using AWS.Lambda.Powertools.BatchProcessing.Kinesis;
using AWS.Lambda.Powertools.BatchProcessing.Sqs;
using AWS.Lambda.Powertools.BatchProcessing.Tests.Handlers.SQS.Custom;
using Xunit;

namespace AWS.Lambda.Powertools.BatchProcessing.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
using System;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Amazon.Lambda.SQSEvents;
using AWS.Lambda.Powertools.BatchProcessing.Tests.Handlers.SQS.Custom;
using Xunit;

namespace AWS.Lambda.Powertools.BatchProcessing.Tests
{
[Collection("Sequential")]
public partial class BatchProcessingAttributeTest
public class BatchProcessingAttributeTest
{
[Fact]
public void BatchProcessorAttribute_WithMultipleHandlerTypes_ThrowsInvalidOperationException()
Expand Down Expand Up @@ -181,37 +179,10 @@ public Task<RecordHandlerResult> HandleAsync(TestData data, CancellationToken ca
}
}

private class TestTypedRecordHandlerProvider : ITypedRecordHandlerProvider<TestData>
{
public ITypedRecordHandler<TestData> Create()
{
return new TestTypedRecordHandler();
}
}

private class TestTypedRecordHandlerWithContext : ITypedRecordHandlerWithContext<TestData>
{
public Task<RecordHandlerResult> HandleAsync(TestData data, ILambdaContext context,
CancellationToken cancellationToken)
{
return Task.FromResult(RecordHandlerResult.None);
}
}

private class TestTypedRecordHandlerWithContextProvider : ITypedRecordHandlerWithContextProvider<TestData>
{
public ITypedRecordHandlerWithContext<TestData> Create()
{
return new TestTypedRecordHandlerWithContext();
}
}

private class TestData
{
public string Message { get; set; }
public int Id { get; set; }
}

// Removed TestJsonSerializerContext to avoid source generation conflicts
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Amazon.Lambda.SQSEvents;
using AWS.Lambda.Powertools.BatchProcessing.Exceptions;
using AWS.Lambda.Powertools.BatchProcessing.Sqs;
using AWS.Lambda.Powertools.Common;
using NSubstitute;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using AWS.Lambda.Powertools.BatchProcessing;
using AWS.Lambda.Powertools.BatchProcessing.Exceptions;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@


using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
Expand Down
Loading