tests(infra.tests): added builder classes for creating test entities
This commit is contained in:
@@ -2,7 +2,6 @@ namespace FiscalOS.Infra.Tests.Data;
|
||||
|
||||
internal sealed class InstitutionBuilder
|
||||
{
|
||||
private User? _user;
|
||||
private string _name = "institutionName";
|
||||
private InstitutionMetadata? _metadata;
|
||||
private readonly List<Account> _accounts = [];
|
||||
@@ -16,12 +15,6 @@ internal sealed class InstitutionBuilder
|
||||
return new();
|
||||
}
|
||||
|
||||
public InstitutionBuilder WithUser(User user)
|
||||
{
|
||||
_user = user;
|
||||
return this;
|
||||
}
|
||||
|
||||
public InstitutionBuilder WithName(string name)
|
||||
{
|
||||
_name = name;
|
||||
@@ -52,7 +45,6 @@ internal sealed class InstitutionBuilder
|
||||
}
|
||||
|
||||
var institution = Institution.From(
|
||||
_user,
|
||||
_name,
|
||||
_metadata
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user