Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![.NET](https://img.shields.io/badge/.NET-8.0%20%7C%209.0-512BD4)](https://dotnet.microsoft.com/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![NuGet](https://img.shields.io/badge/NuGet-Available-blue)](https://www.nuget.org/) [![CodeCov](https://codecov.io/gh/deveel/deveel.messaging/branch/main/graph/badge.svg)](https://codecov.io/gh/deveel/deveel.messaging)
[![NuGet](https://img.shields.io/badge/NuGet-Available-blue)](https://www.nuget.org/) [![codecov](https://codecov.io/gh/deveel/deveel.messaging/graph/badge.svg?token=0JV12EPQOD)](https://codecov.io/gh/deveel/deveel.messaging)


A modern, extensible messaging framework for .NET that provides a unified abstraction layer for various messaging providers including SMS, email, WhatsApp, and push notifications. The framework offers strong type safety, comprehensive validation, and flexible connector architecture.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
<Description>The set of abstractions and base classes for the messaging domain</Description>
<PackageTags>messaging;message;abstractions;endpoint;email;phone;device</PackageTags>
</PropertyGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deveel.Messaging.Abstrations.XUnit</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@
<ItemGroup Condition="$(TargetFramework) == 'net9.0'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.8" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deveel.Messaging.Connector.Abstractions.XUnit</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
<ItemGroup>
<PackageReference Include="RestSharp" Version="112.1.0" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deveel.Messaging.Connector.Facebook.XUnit</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public async Task<FacebookMessageResponse> SendMessageAsync(FacebookMessageReque
/// <summary>
/// Validates Facebook Page Access Token format according to Facebook requirements.
/// </summary>
private static bool IsValidPageAccessToken(string token)
internal static bool IsValidPageAccessToken(string token)
{
// Facebook Page Access Tokens typically start with specific patterns
// and have minimum length requirements
Expand Down Expand Up @@ -179,7 +179,7 @@ private static void ValidateMessageRequest(FacebookMessageRequest request)
/// <summary>
/// Builds Facebook Messenger Platform message payload according to API specification.
/// </summary>
private static object BuildFacebookMessagePayload(FacebookMessageRequest request)
internal static object BuildFacebookMessagePayload(FacebookMessageRequest request)
{
var payload = new Dictionary<string, object>
{
Expand All @@ -205,7 +205,7 @@ private static object BuildFacebookMessagePayload(FacebookMessageRequest request
/// <summary>
/// Builds message content according to Facebook Messenger Platform specification.
/// </summary>
private static object BuildMessageContent(FacebookMessage message)
internal static object BuildMessageContent(FacebookMessage message)
{
var content = new Dictionary<string, object>();

Expand Down Expand Up @@ -256,7 +256,7 @@ private static object BuildMessageContent(FacebookMessage message)
/// <summary>
/// Parses Facebook API error response for detailed error information.
/// </summary>
private static string ParseFacebookError(RestResponse response)
internal static string ParseFacebookError(RestResponse response)
{
try
{
Expand Down Expand Up @@ -290,7 +290,7 @@ private static string ParseFacebookError(RestResponse response)
/// <summary>
/// Safely extracts string property from JSON element.
/// </summary>
private static string? GetJsonStringProperty(JsonElement element, string propertyName)
internal static string? GetJsonStringProperty(JsonElement element, string propertyName)
{
return element.TryGetProperty(propertyName, out var property) ? property.GetString() : null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@
<PackageReference Include="FirebaseAdmin" Version="2.4.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.68.0" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deveel.Messaging.Connector.Firebase.XUnit</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
<ItemGroup>
<PackageReference Include="SendGrid" Version="9.29.3" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deveel.Messaging.Connector.Sendgrid.XUnit</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@
<ItemGroup>
<PackageReference Include="Twilio" Version="7.6.0" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deveel.Messaging.Connector.Twilio.XUnit</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
Loading
Loading