From 27791a595c6f63555b69d2f7270147b67a06d778 Mon Sep 17 00:00:00 2001 From: Alan Sarli Date: Tue, 28 May 2024 17:58:51 +1000 Subject: [PATCH] adjust folder paths --- .../ComponentTesting/MathHappyTests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Examples/MovieProject/MovieProject.Tests/MovieProject.IsolatedTests/ComponentTesting/MathHappyTests.cs b/Examples/MovieProject/MovieProject.Tests/MovieProject.IsolatedTests/ComponentTesting/MathHappyTests.cs index d01a0cd..7260bc4 100644 --- a/Examples/MovieProject/MovieProject.Tests/MovieProject.IsolatedTests/ComponentTesting/MathHappyTests.cs +++ b/Examples/MovieProject/MovieProject.Tests/MovieProject.IsolatedTests/ComponentTesting/MathHappyTests.cs @@ -1,6 +1,7 @@ using FluentAssertions; using FluentAssertions.Execution; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Net; using System.Net.Http; @@ -30,10 +31,11 @@ public async Task When_CallingManyWcfMethods_Then_CanPerformMath_Successfully() var client = Fixture.Server.CreateClient(); client.CreateSession(); - var addResponse = ResponseFactory.FromFiddlerLikeResponseFile($"{Fixture.StubsFolder}/MathWcf/Real_Responses/Happy/200_Add.txt"); + + var addResponse = ResponseFactory.FromFiddlerLikeResponseFile(Path.Combine(Fixture.StubsFolder, "MathWcf/Real_Responses/Happy/200_Add.txt")); client.AppendHttpCallStub(HttpMethod.Post, new System.Uri(Url), addResponse, new Dictionary() { { "SOAPAction", @"""http://tempuri.org/Add""" } }); - var minusResponse = ResponseFactory.FromFiddlerLikeResponseFile($"{Fixture.StubsFolder}/MathWcf/Real_Responses/Happy/200_Minus.txt"); + var minusResponse = ResponseFactory.FromFiddlerLikeResponseFile(Path.Combine(Fixture.StubsFolder, "MathWcf/Real_Responses/Happy/200_Minus.txt")); client.AppendHttpCallStub(HttpMethod.Post, new System.Uri(Url), minusResponse, new Dictionary() { { "SOAPAction", @"""http://tempuri.org/Subtract""" } }); // act