Skip to content

Commit e19d315

Browse files
committed
Fixed target for sitemap.xml
1 parent 9cbb7e1 commit e19d315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LinkDotNet.Blog.UnitTests/Web/Shared/Services/SitemapServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public async Task ShouldSaveSitemapToFile()
7474

7575
await sut.SaveSitemapToFileAsync(sitemap);
7676

77-
xmlFileWriterMock.Verify(x => x.WriteObjectToXmlFileAsync(sitemap, "sitemap.xml"));
77+
xmlFileWriterMock.Verify(x => x.WriteObjectToXmlFileAsync(sitemap, "wwwroot/sitemap.xml"));
7878
}
7979
}
8080
}

LinkDotNet.Blog.Web/Shared/Services/Sitemap/SitemapService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public async Task<SitemapUrlSet> CreateSitemapAsync()
4343

4444
public async Task SaveSitemapToFileAsync(SitemapUrlSet sitemap)
4545
{
46-
await xmlFileWriter.WriteObjectToXmlFileAsync(sitemap, "sitemap.xml");
46+
await xmlFileWriter.WriteObjectToXmlFileAsync(sitemap, "wwwroot/sitemap.xml");
4747
}
4848

4949
private IEnumerable<SitemapUrl> CreateUrlsForBlogPosts(IEnumerable<BlogPost> blogPosts)

0 commit comments

Comments
 (0)