Skip to content

Commit

Permalink
updated project file to use Facade.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentschmaltz authored and mconnew committed Nov 13, 2021
1 parent bb2588c commit 2d485fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<ProjectReference Include="..\..\System.ServiceModel.Federation\src\System.ServiceModel.Federation.csproj" />
<ProjectReference Include="..\..\System.Private.ServiceModel\src\System.Private.ServiceModel.csproj" />
<ProjectReference Include="..\..\System.ServiceModel.Primitives\src\System.ServiceModel.Primitives.Facade.csproj" />
<ProjectReference Include="$(WcfUnitTestCommonProj)" />
<ProjectReference Include="$(WcfInfrastructureCommonProj)" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.

using Infrastructure.Common;
using Xunit;

namespace System.ServiceModel.Federation.Tests
{
Expand All @@ -11,7 +12,14 @@ public static class WSTrustChannelFactoryTest
[WcfFact]
public static void DefaultWSTrustChannelFactory()
{
WSTrustChannelFactory trustChannelFactory = new WSTrustChannelFactory(null, null);
try
{
WSTrustChannelFactory trustChannelFactory = new WSTrustChannelFactory(null, null);
}
catch(Exception ex)
{
Assert.Equal(typeof(ArgumentNullException), ex.GetType());
}
}
}
}
13 changes: 10 additions & 3 deletions src/System.ServiceModel.Federation/tests/WSTrustChannelTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,23 @@
// See the LICENSE file in the project root for more information.

using Infrastructure.Common;
using Microsoft.IdentityModel.Protocols.WsTrust;
using Xunit;

namespace System.ServiceModel.Federation.Tests
{
public static class WSTrustChannelTest
{
[WcfFact]
public static void DefaultWSTrustChannel()
public static void WSTrustChannelParameters()
{
WSTrustChannel trustChannel = new WSTrustChannel(null);
try
{
WSTrustChannel trustChannel = new WSTrustChannel(null);
}
catch(Exception ex)
{
Assert.Equal(typeof(ArgumentNullException), ex.GetType());
}
}
}
}

0 comments on commit 2d485fe

Please sign in to comment.