Skip to content

Commit

Permalink
Merge branch 'release/0.95.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Nov 13, 2022
2 parents a32eaac + ad3efb1 commit 98d0321
Show file tree
Hide file tree
Showing 46 changed files with 715 additions and 272 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "2.2.0",
"version": "3.0.0",
"commands": [
"dotnet-cake"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageReference Include="Logzio.DotNet.NLog" Version="1.0.13" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.0.4" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
13 changes: 10 additions & 3 deletions Source/StrongGrid.UnitTests/Resources/MailTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ public async Task SendAsync()
{
new MailPersonalization()
{
To = new[] { new MailAddress("[email protected]", "Bob Smith") }
}
To = new[] { new MailAddress("[email protected]", "Bob Smith") },
CustomArguments = new[]
{
new KeyValuePair<string, string>("foo", "bar"),
},
SendAt = DateTime.Now,
},
};

var mailSettings = new MailSettings()
Expand Down Expand Up @@ -193,7 +198,9 @@ public async Task EmailExceedsSizeLimit()
new MailContent("text/html", new string('v', 10 * 1024 * 1024))
};

var mail = new Mail(null);
var mockHttp = new MockHttpMessageHandler();
var client = Utils.GetFluentClient(mockHttp);
var mail = new Mail(client);

// Act
var result = await Should.ThrowAsync<Exception>(mail.SendAsync(personalizations, subject, contents, from)).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ public async Task GetDomainAsync()
public async Task CreateDomainAsync()
{
// Arrange
var domain = "";
var subdomain = "";
var username = "";
var domain = "foo.com";
var subdomain = "bar";
var username = "myuser";
var ips = Array.Empty<string>();
var automaticSecurity = true;
var customSpf = false;
Expand Down
4 changes: 2 additions & 2 deletions Source/StrongGrid.UnitTests/StrongGrid.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<PackageReference Include="coverlet.msbuild" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="RichardSzalay.MockHttp" Version="6.0.0" />
<PackageReference Include="Shouldly" Version="4.1.0" />
Expand Down
Loading

0 comments on commit 98d0321

Please sign in to comment.