Fix test name

This commit is contained in:
Robert Marshall 2020-04-10 10:29:35 +01:00
parent b4281bea62
commit c1eff209eb
2 changed files with 5 additions and 3 deletions

View file

@ -99,7 +99,7 @@ namespace Robware.Api.Blog.Tests {
}
[Fact]
public async Task GetLatestPosts_WithCountOf1AndOffsetOfOutOfRange_ReturnsCollectionOf1BlogPosts() {
public async Task GetLatestPosts_WithCountOf1AndOffsetOfOutOfRange_Returns404() {
var logger = Substitute.For<ILogger<BlogController>>();
var repo = Substitute.For<IBlogRepository>();

View file

@ -52,8 +52,10 @@ namespace Robware.Api.Blog.Controllers {
}
}
//[HttpGet]
//Task<BlogPost> GetLatestPost();
[HttpGet(nameof(GetLatestPost))]
public async Task<BlogPost> GetLatestPost() {
return null;
}
//[HttpGet]
//Task<int> GetCount();