Skip to content

Commit

Permalink
InfoAsync instead of InfoAync (#48)
Browse files Browse the repository at this point in the history
* Fixed spelling in message API interface

* Fixed spelling in message API

* Fixed spelling in message API tests
  • Loading branch information
danielmarbach authored and feinoujc committed May 3, 2016
1 parent c285342 commit 713cf7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Mandrill.net/IMandrillMessagesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Task<IList<MandrillMessageTimeSeries>> SearchTimeSeriesAsync(string query, DateT
DateTime? dateTo = null, IList<string> tags = null,
IList<string> senders = null);

Task<MandrillMessageInfo> InfoAync(string id);
Task<MandrillMessageInfo> InfoAsync(string id);
Task<MandrillMessageContent> ContentAsync(string id);
Task<MandrillMessage> ParseAsync(string rawMessage);
Task<IList<MandrillMessageScheduleInfo>> ListScheduledAsync(string to = null);
Expand Down Expand Up @@ -65,4 +65,4 @@ IList<MandrillMessageTimeSeries> SearchTimeSeries(string query,
MandrillMessageScheduleInfo CancelScheduled(string id);
}
#endif
}
}
4 changes: 2 additions & 2 deletions src/Mandrill.net/MandrillMessagesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public Task<IList<MandrillMessageTimeSeries>> SearchTimeSeriesAsync(string query
});
}

public Task<MandrillMessageInfo> InfoAync(string id)
public Task<MandrillMessageInfo> InfoAsync(string id)
{
return MandrillApi.PostAsync<MandrillMessageInfoRequest, MandrillMessageInfo>("messages/info.json",
new MandrillMessageInfoRequest
Expand Down Expand Up @@ -360,4 +360,4 @@ public MandrillMessageScheduleInfo CancelScheduled(string id)
}
}
#endif
}
}
6 changes: 3 additions & 3 deletions tests/Tests/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public async Task Can_retrieve_info()
var found = results.OrderBy(x => x.Ts).FirstOrDefault();
if (found != null)
{
var result = await Api.Messages.InfoAync(found.Id);
var result = await Api.Messages.InfoAsync(found.Id);

result.Should().NotBeNull();
result.Id.Should().Be(found.Id);
Expand All @@ -142,7 +142,7 @@ public async Task Can_retrieve_info()
[Test]
public async Task Throws_when_not_found()
{
var mandrillException = await ThrowsAsync<MandrillException>(() => Api.Messages.InfoAync(Guid.NewGuid().ToString("N")));
var mandrillException = await ThrowsAsync<MandrillException>(() => Api.Messages.InfoAsync(Guid.NewGuid().ToString("N")));
mandrillException.Name.Should().Be("Unknown_Message");
}
}
Expand Down Expand Up @@ -735,4 +735,4 @@ public async Task Can_send_template_dynamic()
}
}
}
}
}

0 comments on commit 713cf7b

Please sign in to comment.