diff options
author | 杨宇千 <crupest@outlook.com> | 2019-09-25 21:35:35 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-09-25 21:35:35 +0800 |
commit | 7c021c429ea77dffdd877c3e2a0bcf6e881a7285 (patch) | |
tree | 6badcfb14fd9fb17c6ae467e2a767b6d72a282e9 /Timeline.Tests/IntegratedTests/UserAvatarTests.cs | |
parent | 3e4405f016ec6cf56bc86577a4662f2fb8f03cc4 (diff) | |
download | timeline-7c021c429ea77dffdd877c3e2a0bcf6e881a7285.tar.gz timeline-7c021c429ea77dffdd877c3e2a0bcf6e881a7285.tar.bz2 timeline-7c021c429ea77dffdd877c3e2a0bcf6e881a7285.zip |
Init migration to dotnet core 3.0.0 .
Diffstat (limited to 'Timeline.Tests/IntegratedTests/UserAvatarTests.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/UserAvatarTests.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline.Tests/IntegratedTests/UserAvatarTests.cs b/Timeline.Tests/IntegratedTests/UserAvatarTests.cs index fd0c2ef4..2a3442d1 100644 --- a/Timeline.Tests/IntegratedTests/UserAvatarTests.cs +++ b/Timeline.Tests/IntegratedTests/UserAvatarTests.cs @@ -55,7 +55,7 @@ namespace Timeline.Tests.IntegratedTests .And.Should().HaveBodyAsCommonResponseWithCode(UserAvatarController.ErrorCodes.Get_UserNotExist);
}
- var env = _factory.Server.Host.Services.GetRequiredService<IHostingEnvironment>();
+ var env = _factory.Server.Host.Services.GetRequiredService<IWebHostEnvironment>();
var defaultAvatarData = await File.ReadAllBytesAsync(Path.Combine(env.ContentRootPath, "default-avatar.png"));
async Task GetReturnDefault(string username = "user")
|