Skip to content

Commit

Permalink
Fix the order of parameter on Camapigns.UpdateAsync to match Campaign…
Browse files Browse the repository at this point in the history
…s.CreateAsync
  • Loading branch information
Jericho committed Dec 13, 2016
1 parent e12da5a commit 71d60c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/StrongGrid.UnitTests/Resources/CampaignsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void Update()
var campaigns = new Campaigns(mockClient.Object, ENDPOINT);

// Act
var result = campaigns.UpdateAsync(campaignId, title, suppressionGroupId, senderId, null, null, null, null, null, null, null, null, CancellationToken.None).Result;
var result = campaigns.UpdateAsync(campaignId, title, suppressionGroupId, null, null, null, null, null, null, senderId, null, null, CancellationToken.None).Result;

// Assert
result.ShouldNotBeNull();
Expand Down
2 changes: 1 addition & 1 deletion Source/StrongGrid/Resources/Campaigns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public async Task DeleteAsync(long campaignId, CancellationToken cancellationTok
/// <returns>
/// The <see cref="Campaign" />.
/// </returns>
public async Task<Campaign> UpdateAsync(long campaignId, string title = null, long? suppressionGroupId = null, long? senderId = null, string subject = null, string htmlContent = null, string textContent = null, IEnumerable<long> listIds = null, IEnumerable<long> segmentIds = null, IEnumerable<string> categories = null, string customUnsubscribeUrl = null, string ipPool = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<Campaign> UpdateAsync(long campaignId, string title = null, long? senderId = null, string subject = null, string htmlContent = null, string textContent = null, IEnumerable<long> listIds = null, IEnumerable<long> segmentIds = null, IEnumerable<string> categories = null, long? suppressionGroupId = null, string customUnsubscribeUrl = null, string ipPool = null, CancellationToken cancellationToken = default(CancellationToken))
{
listIds = listIds ?? Enumerable.Empty<long>();
segmentIds = segmentIds ?? Enumerable.Empty<long>();
Expand Down

0 comments on commit 71d60c1

Please sign in to comment.