Skip to content

Commit

Permalink
refactor: remove InternalsVisibleTo property (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d authored Sep 6, 2023
1 parent 53c906d commit 8b1eb77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Vonage.Server.Test/TestHelpers/E2EHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;
using Vonage.Request;
using Vonage.Server.Video;
using WireMock.Server;
Expand All @@ -10,13 +12,11 @@ public class E2EHelper : IDisposable
private E2EHelper(string appSettingsKey, Credentials credentials)
{
this.Server = WireMockServer.Start();
var configuration = new Configuration
{
Settings =
var configuration = Configuration.FromConfiguration(new ConfigurationBuilder()
.AddInMemoryCollection(new Dictionary<string, string>
{
[$"appSettings:{appSettingsKey}"] = this.Server.Url,
},
};
{$"appSettings:{appSettingsKey}", this.Server.Url},
}).Build());
this.VonageClient = new VideoClient(credentials, configuration);
}

Expand Down
3 changes: 0 additions & 3 deletions Vonage/Vonage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@
<PackagePath>lib\netstandard2.0</PackagePath>
</_PackageFiles>
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Vonage.Server.Test"/>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="node ../.scripts/init.js"/>
</Target>
Expand Down

0 comments on commit 8b1eb77

Please sign in to comment.