diff --git a/src/Mandrill.net/IMandrillMessagesApi.cs b/src/Mandrill.net/IMandrillMessagesApi.cs index e514f45..ce78782 100644 --- a/src/Mandrill.net/IMandrillMessagesApi.cs +++ b/src/Mandrill.net/IMandrillMessagesApi.cs @@ -26,7 +26,7 @@ Task> SearchTimeSeriesAsync(string query, DateT DateTime? dateTo = null, IList tags = null, IList senders = null); - Task InfoAync(string id); + Task InfoAsync(string id); Task ContentAsync(string id); Task ParseAsync(string rawMessage); Task> ListScheduledAsync(string to = null); @@ -65,4 +65,4 @@ IList SearchTimeSeries(string query, MandrillMessageScheduleInfo CancelScheduled(string id); } #endif -} \ No newline at end of file +} diff --git a/src/Mandrill.net/MandrillMessagesApi.cs b/src/Mandrill.net/MandrillMessagesApi.cs index 129f926..89d6b43 100644 --- a/src/Mandrill.net/MandrillMessagesApi.cs +++ b/src/Mandrill.net/MandrillMessagesApi.cs @@ -123,7 +123,7 @@ public Task> SearchTimeSeriesAsync(string query }); } - public Task InfoAync(string id) + public Task InfoAsync(string id) { return MandrillApi.PostAsync("messages/info.json", new MandrillMessageInfoRequest @@ -360,4 +360,4 @@ public MandrillMessageScheduleInfo CancelScheduled(string id) } } #endif -} \ No newline at end of file +} diff --git a/tests/Tests/Messages.cs b/tests/Tests/Messages.cs index 9408e39..ee294eb 100644 --- a/tests/Tests/Messages.cs +++ b/tests/Tests/Messages.cs @@ -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); @@ -142,7 +142,7 @@ public async Task Can_retrieve_info() [Test] public async Task Throws_when_not_found() { - var mandrillException = await ThrowsAsync(() => Api.Messages.InfoAync(Guid.NewGuid().ToString("N"))); + var mandrillException = await ThrowsAsync(() => Api.Messages.InfoAsync(Guid.NewGuid().ToString("N"))); mandrillException.Name.Should().Be("Unknown_Message"); } } @@ -735,4 +735,4 @@ public async Task Can_send_template_dynamic() } } } -} \ No newline at end of file +}