From 5081c26d57f494f9ff919bb1fefc34db58527539 Mon Sep 17 00:00:00 2001 From: Brian Ingenito <28159742+bingenito@users.noreply.github.com> Date: Thu, 8 Feb 2024 07:24:25 -0500 Subject: [PATCH] Correct API declaration of GetResult to be nullable (#110) --- src/Fdc3/IIntentResolution.cs | 2 +- src/Fdc3/IntentResolution.cs | 2 +- src/Tests/Finos.Fdc3.Tests/IntentResolutionTests.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Fdc3/IIntentResolution.cs b/src/Fdc3/IIntentResolution.cs index 954bdf5..38c29ee 100644 --- a/src/Fdc3/IIntentResolution.cs +++ b/src/Fdc3/IIntentResolution.cs @@ -36,6 +36,6 @@ public interface IIntentResolution /// string? Version { get; } - Task GetResult(); + Task GetResult(); } } diff --git a/src/Fdc3/IntentResolution.cs b/src/Fdc3/IntentResolution.cs index 88bb079..555be8d 100644 --- a/src/Fdc3/IntentResolution.cs +++ b/src/Fdc3/IntentResolution.cs @@ -44,6 +44,6 @@ public IntentResolution(IAppMetadata source, string intent, string? version = nu /// public string? Version { get; } - public abstract Task GetResult(); + public abstract Task GetResult(); } } diff --git a/src/Tests/Finos.Fdc3.Tests/IntentResolutionTests.cs b/src/Tests/Finos.Fdc3.Tests/IntentResolutionTests.cs index fcd2764..e827b79 100644 --- a/src/Tests/Finos.Fdc3.Tests/IntentResolutionTests.cs +++ b/src/Tests/Finos.Fdc3.Tests/IntentResolutionTests.cs @@ -55,7 +55,7 @@ public MockIntentResolution(IAppMetadata source, string intent, string? version { } - public override Task GetResult() + public override Task GetResult() { throw new NotImplementedException(); }