Add SaveToFile in the mapping (#284)

* savetofile

* fix !
This commit is contained in:
Stef Heyenrath authored and GitHub committed 2019-06-17 20:34:16 +02:00
1 parent 561bb75f9f
commit 7a4814e335
32 files changed
+277 -168

No files matched your search

@@ -1,5 +1,7 @@
using System.Threading.Tasks;
using Moq;
using NFluent;
using WireMock.Handlers;
using WireMock.Models;
using WireMock.ResponseBuilders;
using Xunit;
@@ -8,6 +10,8 @@ namespace WireMock.Net.Tests.ResponseBuilders
{
public class ResponseCreateTests
{
private readonly Mock<IFileSystemHandler> _fileSystemHandlerMock = new Mock<IFileSystemHandler>();
[Fact]
public async Task Response_Create_Func()
{
@@ -18,7 +22,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
var response = Response.Create(() => responseMessage);
// Act
var providedResponse = await response.ProvideResponseAsync(request);
var providedResponse = await response.ProvideResponseAsync(request, _fileSystemHandlerMock.Object);
// Assert
Check.That(providedResponse).Equals(responseMessage);