Fix for invalid cast exception (#403)

This commit is contained in:
Kashif Jamal Soofi
2020-01-22 13:27:44 +00:00
committed by Stef Heyenrath
parent 93613885c1
commit ea1be6641a

View File

@@ -17,7 +17,7 @@ namespace WireMock.Net.StandAlone
/// </summary>
/// <param name="settings">The FluentMockServerSettings</param>
[PublicAPI]
public static WireMockServer Start([NotNull] FluentMockServerSettings settings)
public static WireMockServer Start([NotNull] IWireMockServerSettings settings)
{
Check.NotNull(settings, nameof(settings));
@@ -38,7 +38,7 @@ namespace WireMock.Net.StandAlone
{
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}'")));