-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,17 @@ public async Task Should_Return_Campaigns() | |
[Fact] | ||
public async Task Should_Return_One_Campaign() | ||
{ | ||
var campaign = await this.MailChimpManager.Campaigns.AddAsync(new Campaign | ||
{ | ||
Settings = new Setting | ||
{ | ||
ReplyTo = "[email protected]", | ||
Title = "Get Rich or Die Trying To Add Campaigns", | ||
FromName = "AddCampaign", | ||
SubjectLine = "TestingAddCampaign" | ||
}, | ||
Type = CampaignType.Plaintext | ||
}).ConfigureAwait(false); | ||
var campaigns = await this.MailChimpManager.Campaigns.GetAll(new CampaignRequest { Limit = 1 }); | ||
Assert.True(campaigns.Count() == 1); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters