mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-30 02:31:08 +00:00
19 lines
493 B
C#
19 lines
493 B
C#
using System;
|
|
using CleanArchitecture.Domain.Entities;
|
|
using CleanArchitecture.Infrastructure.Database;
|
|
|
|
namespace CleanArchitecture.IntegrationTests.Fixtures;
|
|
|
|
public sealed class TenantTestFixture : TestFixtureBase
|
|
{
|
|
public Guid CreatedTenantId { get; } = Guid.NewGuid();
|
|
|
|
protected override void SeedTestData(ApplicationDbContext context)
|
|
{
|
|
context.Tenants.Add(new Tenant(
|
|
CreatedTenantId,
|
|
"Test Tenant"));
|
|
|
|
context.SaveChanges();
|
|
}
|
|
} |