File tree Expand file tree Collapse file tree 4 files changed +33
-5
lines changed
test/SocketLabs.Tests/InjectionApi Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ PM> Install-Package SocketLabs.EmailDelivery
36
36
Adding a Package Reference to your project:
37
37
38
38
```
39
- <PackageReference Include="SocketLabs.EmailDelivery" Version="2.0.0 " />
39
+ <PackageReference Include="SocketLabs.EmailDelivery" Version="2.0.1 " />
40
40
```
41
41
42
42
.NET CLI users can also use the following command:
Original file line number Diff line number Diff line change 1
- ## 2.0.0
1
+ ## 2.0.1
2
2
3
3
* Fix issue with ApiKey being unset for bearer type keys
4
4
* Add explicit support for .NET 8.0 and .NET 9.0
Original file line number Diff line number Diff line change 1
- ## 1.4.3
2
- * Added MetadataOrTagsAreTooLarge error messsage
1
+ ## 2.0.1
2
+
3
+ * Fix issue with ApiKey being unset for bearer type keys
4
+ * Add explicit support for .NET 8.0 and .NET 9.0
5
+ * Update dependencies
6
+ * Implement nullable pattern
7
+
8
+ ``` note
9
+ This is a breaking change. Some objects require constructor initialization now.
10
+ ```
Original file line number Diff line number Diff line change 1
- using Microsoft . VisualStudio . TestTools . UnitTesting ;
1
+ using Microsoft . VisualStudio . TestPlatform . CommunicationUtilities ;
2
+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
3
+ using Newtonsoft . Json . Linq ;
2
4
using SocketLabs . InjectionApi ;
3
5
using SocketLabs . InjectionApi . Message ;
4
6
using System ;
@@ -34,5 +36,23 @@ public async Task SendAsyncTest()
34
36
// The client should throw the same exception on subsequent calls.
35
37
await Assert . ThrowsExceptionAsync < HttpRequestException > ( async ( ) => await client . SendAsync ( message , CancellationToken . None ) ) ;
36
38
}
39
+
40
+
41
+ [ TestMethod ( ) ]
42
+ public async Task CanSendMessage ( )
43
+ {
44
+ var _client = new SocketLabsClient ( 42006 , "DcYYCkSQoV2exx8ksztt.UsImvR6ckr1_r32wC3KPWmd2D1Sz7PGfRx6fJPrg" )
45
+ {
46
+ NumberOfRetries = 3
47
+ } ;
48
+
49
+ var message = new BasicMessage ( ) ;
50
+ message . To . Add ( "[email protected] " ) ;
51
+ message . From . Email = "[email protected] " ;
52
+ message . Subject = "This is a test" ;
53
+ message . HtmlBody = "<p>Hi!</p>" ;
54
+
55
+ var response = await _client . SendAsync ( message , CancellationToken . None ) ;
56
+ }
37
57
}
38
58
}
You can’t perform that action at this time.
0 commit comments