diff --git a/README.md b/README.md index da2806f..97b8eeb 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ PM> Install-Package SocketLabs.EmailDelivery Adding a Package Reference to your project: ``` - + ``` .NET CLI users can also use the following command: diff --git a/docs/release-notes/2.0.0.md b/docs/release-notes/2.0.1.md similarity index 96% rename from docs/release-notes/2.0.0.md rename to docs/release-notes/2.0.1.md index 380cd99..804f28f 100644 --- a/docs/release-notes/2.0.0.md +++ b/docs/release-notes/2.0.1.md @@ -1,4 +1,4 @@ -## 2.0.0 +## 2.0.1 * Fix issue with ApiKey being unset for bearer type keys * Add explicit support for .NET 8.0 and .NET 9.0 diff --git a/docs/release-notes/latest.md b/docs/release-notes/latest.md index a06982e..804f28f 100644 --- a/docs/release-notes/latest.md +++ b/docs/release-notes/latest.md @@ -1,2 +1,10 @@ -## 1.4.3 -* Added MetadataOrTagsAreTooLarge error messsage \ No newline at end of file +## 2.0.1 + +* Fix issue with ApiKey being unset for bearer type keys +* Add explicit support for .NET 8.0 and .NET 9.0 +* Update dependencies +* Implement nullable pattern + +```note +This is a breaking change. Some objects require constructor initialization now. +``` \ No newline at end of file diff --git a/src/SocketLabs/SocketLabs.csproj b/src/SocketLabs/SocketLabs.csproj index 02de6e1..48584d4 100644 --- a/src/SocketLabs/SocketLabs.csproj +++ b/src/SocketLabs/SocketLabs.csproj @@ -8,12 +8,12 @@ SocketLabs.EmailDelivery false false - 2.0.0 + 2.0.1 Copyright © 2018-2025 SocketLabs Acquisition LLC Matt Soler, David Schrenker, Mike Boshuyzen, Joe Cooper, Matt Reibach, Ryan Lydzinski, Mike Goodfellow, Saranya Kavuri SocketLabs .Net Client Library - 2.0.0 - 2.0.0 + 2.0.1 + 2.0.1 Easily send email messages using the SocketLabs Injection API. https://github.com/socketlabs/socketlabs-csharp https://inject.docs.socketlabs.com/ diff --git a/test/SocketLabs.Tests/InjectionApi/SocketLabsClientTests.cs b/test/SocketLabs.Tests/InjectionApi/SocketLabsClientTests.cs index 800d785..7807cc8 100644 --- a/test/SocketLabs.Tests/InjectionApi/SocketLabsClientTests.cs +++ b/test/SocketLabs.Tests/InjectionApi/SocketLabsClientTests.cs @@ -1,4 +1,6 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Newtonsoft.Json.Linq; using SocketLabs.InjectionApi; using SocketLabs.InjectionApi.Message; using System; @@ -34,5 +36,23 @@ public async Task SendAsyncTest() // The client should throw the same exception on subsequent calls. await Assert.ThrowsExceptionAsync(async () => await client.SendAsync(message, CancellationToken.None)); } + + + [TestMethod()] + public async Task CanSendMessage() + { + var _client = new SocketLabsClient(42006, "DcYYCkSQoV2exx8ksztt.UsImvR6ckr1_r32wC3KPWmd2D1Sz7PGfRx6fJPrg") + { + NumberOfRetries = 3 + }; + + var message = new BasicMessage(); + message.To.Add("matt.soler@socketlabs.com"); + message.From.Email = "do-reply@ai.socketlabs.email"; + message.Subject = "This is a test"; + message.HtmlBody = "

Hi!

"; + + var response = await _client.SendAsync(message, CancellationToken.None); + } } } \ No newline at end of file