Skip to content

Commit 0582a09

Browse files
committed
fix(tests) - Fixed sample AppDirectory for tests
1 parent eb72489 commit 0582a09

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/fdc3/dotnet/DesktopAgent.Client/test/IntegrationTests/MorganStanley.ComposeUI.Fdc3.DesktopAgent.Client.IntegrationTests.csproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@
3434
<ProjectReference Include="..\..\src\MorganStanley.ComposeUI.Fdc3.DesktopAgent.Client\MorganStanley.ComposeUI.Fdc3.DesktopAgent.Client.csproj" />
3535
<ProjectReference Include="..\TestHelpers\DesktopAgentClientConsoleApp\DesktopAgentClientConsoleApp.csproj" />
3636
</ItemGroup>
37-
<ItemGroup>
38-
<Using Include="Xunit" />
39-
</ItemGroup>
40-
<ItemGroup>
41-
<None Update="testAppDirectory.json">
42-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
43-
</None>
44-
</ItemGroup>
37+
38+
<ItemGroup>
39+
<Using Include="Xunit" />
40+
</ItemGroup>
41+
<ItemGroup>
42+
<None Update="testAppDirectory.json">
43+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
44+
</None>
45+
</ItemGroup>
4546

4647
</Project>

src/fdc3/dotnet/DesktopAgent.Client/test/IntegrationTests/testAppDirectory.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"name": "app1",
7070
"type": "native",
7171
"details": {
72-
"path": "..\\..\\..\\..\\TestHelpers\\DesktopAgentClientConsoleApp\\bin\\Debug\\net8.0\\DesktopAgentClientConsoleApp.exe"
72+
"path": "..\\..\\..\\..\\TestHelpers\\DesktopAgentClientConsoleApp\\bin\\Release\\net8.0\\DesktopAgentClientConsoleApp.exe"
7373
},
7474
"interop": {
7575
"intents": {

src/fdc3/dotnet/DesktopAgent/src/MorganStanley.ComposeUI.Fdc3.DesktopAgent/Fdc3DesktopAgentService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public async ValueTask<GetAppMetadataResponse> GetAppMetadata(GetAppMetadataRequ
693693

694694
if (_logger.IsEnabled(LogLevel.Debug))
695695
{
696-
_logger.LogDebug($"Executing {nameof(Open)} request for appId: {request.AppIdentifier.AppId} with instanceId: {request.InstanceId}.");
696+
_logger.LogDebug($"Executing {nameof(Open)} request for appId: {request.AppIdentifier?.AppId ?? string.Empty} with instanceId: {request.InstanceId}.");
697697
}
698698

699699
if (!Guid.TryParse(request.InstanceId, out var fdc3InstanceId)
@@ -706,7 +706,7 @@ public async ValueTask<GetAppMetadataResponse> GetAppMetadata(GetAppMetadataRequ
706706

707707
try
708708
{
709-
var fdc3App = await _appDirectory.GetApp(request.AppIdentifier.AppId);
709+
var fdc3App = await _appDirectory.GetApp(request.AppIdentifier!.AppId);
710710
var appMetadata = fdc3App.ToAppMetadata();
711711
var parameters = new Dictionary<string, string>();
712712

0 commit comments

Comments
 (0)