Skip to content

Commit 5ea3565

Browse files
Add fake Program class to sample project
1 parent 51f7a3e commit 5ea3565

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

sample/SampleApi/Program.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#pragma warning disable MA0048 // File name must match type name
2+
#pragma warning disable SA1649 // File name should match first type name
3+
#pragma warning disable MA0047 // Declare types in namespaces
4+
#pragma warning disable S3903 // Types should be defined in named namespaces
5+
16
using Atc.Azure.Messaging.EventHub;
27
using Atc.Azure.Messaging.ServiceBus;
38

@@ -23,11 +28,7 @@
2328

2429
app.Run();
2530

26-
#pragma warning disable MA0048 // File name must match type name
27-
#pragma warning disable SA1649 // File name should match first type name
28-
#pragma warning disable MA0047 // Declare types in namespaces
29-
#pragma warning disable S3903 // Types should be defined in named namespaces
30-
31+
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
3132
internal class SendDataHandler
3233
{
3334
private readonly IEventHubPublisher eventHubPublisher;
@@ -55,6 +56,11 @@ public async Task<Response> Post(Request request)
5556
}
5657
}
5758

59+
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
5860
internal record Request(string A, string B, string C);
5961

60-
internal record Response(string Id, string A, string B, string C);
62+
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
63+
internal record Response(string Id, string A, string B, string C);
64+
65+
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
66+
public static partial class Program { }

0 commit comments

Comments
 (0)