Small refactor on Template logic

This commit is contained in:
Stef Heyenrath
2022-01-06 21:25:15 +01:00
parent 0f1a4f32ef
commit 60bdc06d29
3 changed files with 8 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System;
using HandlebarsDotNet;
using JetBrains.Annotations;
using Stef.Validation;
using WireMock.Handlers;
namespace WireMock.Transformers.Handlebars
@@ -12,7 +13,7 @@ namespace WireMock.Transformers.Handlebars
public HandlebarsContextFactory([NotNull] IFileSystemHandler fileSystemHandler, [CanBeNull] Action<IHandlebars, IFileSystemHandler> action)
{
_fileSystemHandler = fileSystemHandler ?? throw new ArgumentNullException(nameof(fileSystemHandler));
_fileSystemHandler = Guard.NotNull(fileSystemHandler);
_action = action;
}