tests(infra.tests): added builder classes for creating test entities

This commit is contained in:
Stevan Freeborn
2026-03-08 07:18:27 -05:00
parent 27d2ccbd45
commit 870baf7b6c
8 changed files with 129 additions and 74 deletions
@@ -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
);