Skip to content

Commit

Permalink
Update SendgridEmailClientTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutiburman committed Nov 24, 2023
1 parent 2268c6a commit 4be136a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/SendGrid.Tests/SendgridEmailClientTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace SendGrid.Tests
{
using System;
using System.Threading.Tasks;
using SendGrid.Helpers.Mail;
using Xunit;

Expand Down Expand Up @@ -35,10 +36,19 @@ public void TestClientOptionsSetViaSendgridClient()
var sg = new SendGridClient(options);
Assert.Equal("https://api.eu.sendgrid.com/", options.Host);
Console.WriteLine("HERE");
Console.WriteLine(sg);
Console.WriteLine(sg.UrlPath);
//Assert.Equal("https://api.eu.sendgrid.com/", sg.UrlPath);
}

[Fact]
public void TestErrorClientOptions()
{
var options = new SendGridClientOptions();
Assert.Throws<ArgumentNullException>(() => options.SetDataResidency(""));
Assert.Throws<ArgumentNullException>(() => options.SetDataResidency(null));

}


}
}

0 comments on commit 4be136a

Please sign in to comment.