fix(Mock): rename Fake

This commit is contained in:
tekh 2025-08-29 12:53:03 +02:00
parent baf2207d03
commit ac501dffb1
3 changed files with 6 additions and 5 deletions

View File

@ -18,6 +18,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Bogus" Version="35.6.3" />
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="DigitalData.Core.Abstraction.Application" Version="1.2.1" />
<PackageReference Include="DigitalData.Core.Abstractions" Version="4.0.0" />

View File

@ -9,7 +9,7 @@ using Microsoft.Extensions.Hosting;
namespace EnvelopeGenerator.Tests.Application;
public class Mock
public class Fake
{
public static Host CreateHost() => Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder()
.ConfigureAppConfiguration((context, config) =>
@ -32,7 +32,7 @@ public class Mock
#pragma warning restore CS0618
})
.Build()
.ToMock();
.ToFake();
public class Host : IHost
{
@ -98,5 +98,5 @@ public class Mock
public static class Extensions
{
public static Mock.Host ToMock(this IHost host) => new(host);
public static Fake.Host ToFake(this IHost host) => new(host);
}

View File

@ -7,12 +7,12 @@ namespace EnvelopeGenerator.Tests.Application;
[TestFixture]
public class HistoryTests
{
private Mock.Host _host;
private Fake.Host _host;
[SetUp]
public async Task Setup()
{
_host = Mock.CreateHost();
_host = Fake.CreateHost();
await _host.AddSampleReceivers();
}