chore: Move the related configuration items to the Common library.

This commit is contained in:
real-zony
2022-10-06 12:29:56 +08:00
parent 9f96aa0186
commit aa90e232f7
15 changed files with 35 additions and 40 deletions

View File

@@ -3,8 +3,8 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Shouldly;
using Xunit;
using ZonyLrcTools.Cli.Config;
using ZonyLrcTools.Cli.Infrastructure.Network;
using ZonyLrcTools.Common.Configuration;
namespace ZonyLrcTools.Tests.Infrastructure.Network
{
@@ -33,7 +33,7 @@ namespace ZonyLrcTools.Tests.Infrastructure.Network
[Fact]
public async Task GetAsyncWithProxy_Test()
{
var option = ServiceProvider.GetRequiredService<IOptions<ToolOptions>>();
var option = ServiceProvider.GetRequiredService<IOptions<GlobalOptions>>();
option.Value.NetworkOptions.Ip = "127.0.0.1";
option.Value.NetworkOptions.Port = 4780;