diff --git a/src/Configuration/LocalPlatformSettings.cs b/src/Configuration/LocalPlatformSettings.cs index cb63c194..20949d13 100644 --- a/src/Configuration/LocalPlatformSettings.cs +++ b/src/Configuration/LocalPlatformSettings.cs @@ -1,3 +1,5 @@ +using System.IO; + namespace LocalTest.Configuration { /// @@ -5,6 +7,8 @@ namespace LocalTest.Configuration /// public class LocalPlatformSettings { + string _localTestDataPath = null; + /// /// The endpoint for the bridge /// @@ -20,7 +24,18 @@ public class LocalPlatformSettings /// /// Folder where static test data like profile, authorization, and register data is available for local testing. /// - public string LocalTestingStaticTestDataPath { get; set; } + public string LocalTestingStaticTestDataPath { + get => _localTestDataPath; + set { + if (!value.EndsWith(Path.DirectorySeparatorChar) && + !value.EndsWith(Path.AltDirectorySeparatorChar)) + { + value += Path.DirectorySeparatorChar; + } + + _localTestDataPath = value; + } + } /// /// Url for the local app when LocalAppMode == http