From 96a9e87dce8e540f5ca8ae11f676f7daf13f2342 Mon Sep 17 00:00:00 2001 From: Kashif Soofi Date: Tue, 21 Jan 2020 18:09:14 +0000 Subject: [PATCH] Fix for invalid cast exception --- src/WireMock.Net.StandAlone/StandAloneApp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WireMock.Net.StandAlone/StandAloneApp.cs b/src/WireMock.Net.StandAlone/StandAloneApp.cs index 0c8cf1ce3..c45e4e242 100644 --- a/src/WireMock.Net.StandAlone/StandAloneApp.cs +++ b/src/WireMock.Net.StandAlone/StandAloneApp.cs @@ -17,7 +17,7 @@ public static class StandAloneApp /// /// The FluentMockServerSettings [PublicAPI] - public static WireMockServer Start([NotNull] FluentMockServerSettings settings) + public static WireMockServer Start([NotNull] IWireMockServerSettings settings) { Check.NotNull(settings, nameof(settings)); @@ -38,7 +38,7 @@ public static WireMockServer Start([NotNull] string[] args, [CanBeNull] IWireMoc { Check.NotNull(args, nameof(args)); - var settings = (FluentMockServerSettings) WireMockServerSettingsParser.ParseArguments(args); + var settings = WireMockServerSettingsParser.ParseArguments(args); settings.Logger.Debug("WireMock.Net server arguments [{0}]", string.Join(", ", args.Select(a => $"'{a}'")));