feat(Fake): add extension method to Fake to create Envelope
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using Bogus;
|
||||
using DigitalData.UserManager.Domain.Entities;
|
||||
using EnvelopeGenerator.Application.Envelopes.Commands;
|
||||
using EnvelopeGenerator.Application.Receivers.Commands;
|
||||
using EnvelopeGenerator.Domain.Entities;
|
||||
using MediatR;
|
||||
|
||||
namespace EnvelopeGenerator.Tests.Application;
|
||||
@@ -16,6 +16,8 @@ public class TestBase : Faker
|
||||
|
||||
public CreateEnvelopeCommand FakeCreateEnvelopeCommand => this.CreateEnvelopeCommand(Host.User.Id);
|
||||
|
||||
public Envelope FakeEnvelope => this.CreateEnvelope(Host.User.Id);
|
||||
|
||||
[SetUp]
|
||||
public virtual async Task Setup()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user