diff --git a/src/SparkPost.Tests/DataMapperTests.cs b/src/SparkPost.Tests/DataMapperTests.cs index 3a6e54e3..863e0c72 100644 --- a/src/SparkPost.Tests/DataMapperTests.cs +++ b/src/SparkPost.Tests/DataMapperTests.cs @@ -613,6 +613,15 @@ public void template_id() mapper.ToDictionary(content)["template_id"].ShouldEqual(value); } + [Test] + public void ab_test_id() + { + var value = Guid.NewGuid().ToString(); + content.AbTestId = value; + mapper.ToDictionary(content)["ab_test_id"].ShouldEqual(value); + } + + [Test] public void html() { diff --git a/src/SparkPost/Content.cs b/src/SparkPost/Content.cs index ab89b095..bef8f9e5 100644 --- a/src/SparkPost/Content.cs +++ b/src/SparkPost/Content.cs @@ -22,5 +22,7 @@ public Content() public IList InlineImages { get; set; } public string TemplateId { get; set; } public bool? UseDraftTemplate { get; set; } + + public string AbTestId { get; set; } } } \ No newline at end of file