diff --git a/Tests/VTEX.Tests/Health/VtexHealthClientTests.cs b/Tests/VTEX.Tests/Health/VtexHealthClientTests.cs
index 3c21180e3..ea6fd69e9 100644
--- a/Tests/VTEX.Tests/Health/VtexHealthClientTests.cs
+++ b/Tests/VTEX.Tests/Health/VtexHealthClientTests.cs
@@ -18,7 +18,7 @@ namespace VTEX.Tests.Health
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
- using Moq;
+ using NSubstitute;
using VTEX.Health;
using Xunit;
@@ -31,9 +31,9 @@ public class VtexHealthClientTests
/// Asynchronously validates the health status of a platform by retrieving platform statuses from a health client.
///
///
- /// This test method sets up a mock implementation of the interface to simulate the retrieval of platform statuses.
+ /// This test method sets up a substitute implementation of the interface to simulate the retrieval of platform statuses.
/// It creates a collection of objects, representing both healthy and unhealthy statuses.
- /// The method then calls the mocked client's method and verifies that the result is not null.
+ /// The method then calls the substitute's method and verifies that the result is not null.
/// It also checks that the returned list contains exactly two items, one with a healthy status and one with an unhealthy status.
/// This ensures that the health client is functioning as expected and returning the correct platform statuses.
///
@@ -58,13 +58,13 @@ public async Task ValidateHealthClient()
},
};
- var clientMock = new Mock();
- clientMock
- .Setup(c => c.GetPlatformStatuesAsync(It.IsAny()))
- .ReturnsAsync(fixtures);
+ var clientSubstitute = Substitute.For();
+ clientSubstitute
+ .GetPlatformStatuesAsync(Arg.Any())
+ .Returns(fixtures);
- var result = await clientMock
- .Object.GetPlatformStatuesAsync(CancellationToken.None)
+ var result = await clientSubstitute
+ .GetPlatformStatuesAsync(CancellationToken.None)
.ConfigureAwait(false);
Assert.NotNull(result);