Skip to content

Commit

Permalink
adding IDivisionResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidhajiparvaneh committed Mar 13, 2024
1 parent a17cab1 commit a1974ab
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions EDILibrary/Interfaces/IDivisionResolver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using EDILibrary.Helper;

namespace EDILibrary.Interfaces
{
/// <summary>
/// An interface that allows to determine the <see cref="BO4E.ENUM.Sparte"/> ("division") of a market partner.
/// </summary>
/// <remarks>
/// The classes implementing this interface might be hardcoded mappings to start with;
/// But in the future™ there might be another market partner service that holds this information.
/// </remarks>
public interface IDivisionResolver
{
/// <summary>
/// Determine the sparte that is relevant for a message which has <paramref name="senderMarketPartnerId"/> as sender and <paramref name="receiverMarketPartnerId"/> as receiver.
/// </summary>
/// <param name="senderMarketPartnerId">the 13 digit market partner ID of the sending marktpartner</param>
/// <param name="receiverMarketPartnerId">the 13 digit market partner ID of the sending marktpartner</param>
/// <returns>the sparte</returns>
public Sparte GetSparte(
string? senderMarketPartnerId,

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 27 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
string? receiverMarketPartnerId

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (8.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (6.0.201)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / unittest (7.0.100)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 28 in EDILibrary/Interfaces/IDivisionResolver.cs

View workflow job for this annotation

GitHub Actions / coverage

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
);
}
}

0 comments on commit a1974ab

Please sign in to comment.