From f5dbecda7b0ede370772a9d5dc9027d880536cb7 Mon Sep 17 00:00:00 2001 From: alex289 Date: Wed, 4 Sep 2024 13:03:02 +0200 Subject: [PATCH] fix: Integration test duplicated seedings --- .../Fixtures/UserTestFixture.cs | 13 ------------- .../Fixtures/gRPC/GetUsersByIdsTestFixture.cs | 4 ---- 2 files changed, 17 deletions(-) diff --git a/CleanArchitecture.IntegrationTests/Fixtures/UserTestFixture.cs b/CleanArchitecture.IntegrationTests/Fixtures/UserTestFixture.cs index 3939b3d..f9489a8 100644 --- a/CleanArchitecture.IntegrationTests/Fixtures/UserTestFixture.cs +++ b/CleanArchitecture.IntegrationTests/Fixtures/UserTestFixture.cs @@ -16,19 +16,6 @@ public sealed class UserTestFixture : TestFixtureBase using var context = Factory.Services.GetRequiredService(); - context.Tenants.Add(new Tenant( - Ids.Seed.TenantId, - "Admin Tenant")); - - context.Users.Add(new User( - Ids.Seed.UserId, - Ids.Seed.TenantId, - "admin@email.com", - "Admin", - "User", - "$2a$12$Blal/uiFIJdYsCLTMUik/egLbfg3XhbnxBC6Sb5IKz2ZYhiU/MzL2", - UserRole.Admin)); - context.Users.Add(new User( TestAuthenticationOptions.TestUserId, Ids.Seed.TenantId, diff --git a/CleanArchitecture.IntegrationTests/Fixtures/gRPC/GetUsersByIdsTestFixture.cs b/CleanArchitecture.IntegrationTests/Fixtures/gRPC/GetUsersByIdsTestFixture.cs index 0e35906..09fa30e 100644 --- a/CleanArchitecture.IntegrationTests/Fixtures/gRPC/GetUsersByIdsTestFixture.cs +++ b/CleanArchitecture.IntegrationTests/Fixtures/gRPC/GetUsersByIdsTestFixture.cs @@ -28,10 +28,6 @@ public sealed class GetUsersByIdsTestFixture : TestFixtureBase using var context = Factory.Services.GetRequiredService(); - context.Tenants.Add(new Tenant( - Ids.Seed.TenantId, - "Admin Tenant")); - var user = CreateUser(); context.Users.Add(user);