fix(Mock): rename Fake
This commit is contained in:
parent
baf2207d03
commit
ac501dffb1
@ -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" />
|
||||
|
||||
@ -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);
|
||||
}
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user