mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Inlines fixtures instantiation.
This commit is contained in:
1 parent
b648e2f054
commit
59e16d645a
147 files changed
+190
-898
No files matched your search
+1
-2
@@ -26,7 +26,7 @@ public class PermissionRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly PermissionRepository _sut;
|
||||
private readonly PermissionEntityFixture _permissionEntityFixture;
|
||||
private readonly PermissionEntityFixture _permissionEntityFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PermissionRepositoryTests"/> class.
|
||||
@@ -35,7 +35,6 @@ public class PermissionRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new PermissionRepository(_mockContext);
|
||||
_permissionEntityFixture = new PermissionEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+1
-2
@@ -23,7 +23,7 @@ public class RolePermissionRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly RolePermissionRepository _sut;
|
||||
private readonly RolePermissionEntityFixture _rolePermissionEntityFixture;
|
||||
private readonly RolePermissionEntityFixture _rolePermissionEntityFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RolePermissionRepositoryTests"/> class.
|
||||
@@ -32,7 +32,6 @@ public class RolePermissionRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new RolePermissionRepository(_mockContext);
|
||||
_rolePermissionEntityFixture = new RolePermissionEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+1
-2
@@ -23,7 +23,7 @@ public class UserRoleRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly UserRoleRepository _sut;
|
||||
private readonly UserRoleEntityFixture _userRoleEntityFixture;
|
||||
private readonly UserRoleEntityFixture _userRoleEntityFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserRoleRepositoryTests"/> class.
|
||||
@@ -32,7 +32,6 @@ public class UserRoleRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new UserRoleRepository(_mockContext);
|
||||
_userRoleEntityFixture = new UserRoleEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+1
-2
@@ -28,7 +28,7 @@ public class BookRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly BookRepository _sut;
|
||||
private readonly BookEntityFixture _bookEntityFixture;
|
||||
private readonly BookEntityFixture _bookEntityFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BookRepositoryTests"/> class.
|
||||
@@ -37,7 +37,6 @@ public class BookRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new BookRepository(_mockContext);
|
||||
_bookEntityFixture = new BookEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+1
-2
@@ -20,7 +20,7 @@ public class LibraryMetadataProviderConfigurationRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly LibraryMetadataProviderConfigurationRepository _sut;
|
||||
private readonly LibraryMetadataProviderConfigurationEntityFixture _configurationFixture;
|
||||
private readonly LibraryMetadataProviderConfigurationEntityFixture _configurationFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LibraryMetadataProviderConfigurationRepositoryTests"/> class.
|
||||
@@ -29,7 +29,6 @@ public class LibraryMetadataProviderConfigurationRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new LibraryMetadataProviderConfigurationRepository(_mockContext);
|
||||
_configurationFixture = new LibraryMetadataProviderConfigurationEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+1
-2
@@ -21,7 +21,7 @@ public class PluginRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly PluginRepository _sut;
|
||||
private readonly PluginEntityFixture _pluginFixture;
|
||||
private readonly PluginEntityFixture _pluginFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PluginRepositoryTests"/> class.
|
||||
@@ -30,7 +30,6 @@ public class PluginRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new PluginRepository(_mockContext);
|
||||
_pluginFixture = new PluginEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
+2
-4
@@ -28,8 +28,8 @@ public class UserRepositoryTests
|
||||
{
|
||||
private readonly LuminaDbContext _mockContext;
|
||||
private readonly UserRepository _sut;
|
||||
private readonly UserEntityFixture _userEntityFixture;
|
||||
private readonly PermissionEntityFixture _permissionEntityFixture;
|
||||
private readonly UserEntityFixture _userEntityFixture = new();
|
||||
private readonly PermissionEntityFixture _permissionEntityFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserRepositoryTests"/> class.
|
||||
@@ -38,8 +38,6 @@ public class UserRepositoryTests
|
||||
{
|
||||
_mockContext = Create.MockedDbContextFor<LuminaDbContext>();
|
||||
_sut = new UserRepository(_mockContext);
|
||||
_userEntityFixture = new UserEntityFixture();
|
||||
_permissionEntityFixture = new PermissionEntityFixture();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user