Refactor and enhance MessagingService client tests
Updated `ToSender` to an extension method for improved usability. Bumped project version to 3.0.0, reflecting major changes. Added `MessagingServiceApiBaseAddress` constant for maintainability. Introduced new test for HTTP client dependency injection. Refactored command creation into a reusable `CreateCommand` method. Removed redundant code and improved test structure for clarity.
This commit is contained in:
@@ -5,7 +5,7 @@ namespace DigitalData.MessagingService.Application.EmailSending.Commands;
|
||||
|
||||
public static class GetEmailAccountQueryExtensions
|
||||
{
|
||||
public static GetEmailAccountQuery ToSender(string emailAddress)
|
||||
public static GetEmailAccountQuery ToSender(this string emailAddress)
|
||||
{
|
||||
return new GetEmailAccountQuery
|
||||
{
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
<PackageIcon>icon.png</PackageIcon>
|
||||
<RepositoryUrl>http://git.dd:3000/AppStd/Rec.git</RepositoryUrl>
|
||||
<PackageTags>digital data messaging service api client</PackageTags>
|
||||
<Version>2.0.0</Version>
|
||||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||||
<FileVersion>2.0.0.0</FileVersion>
|
||||
<Version>3.0.0</Version>
|
||||
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
||||
<FileVersion>3.0.0.0</FileVersion>
|
||||
<Description></Description>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
Reference in New Issue
Block a user