mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
-6
@@ -17,12 +17,9 @@ namespace Lumina.Infrastructure.UnitTests.Common.Validators;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class CommonSettingsModelValidatorTests
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
private readonly CommonSettingsModelValidator _validator;
|
||||
private readonly IFixture _fixture;
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CommonSettingsModelValidatorTests"/> class.
|
||||
/// </summary>
|
||||
@@ -31,9 +28,7 @@ public class CommonSettingsModelValidatorTests
|
||||
_fixture = new Fixture().Customize(new AutoNSubstituteCustomization());
|
||||
_validator = new();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
[Fact]
|
||||
public void CommonSettingsModelValidator_WhenThemeProvided_ShouldNotHaveValidationError()
|
||||
{
|
||||
@@ -66,5 +61,4 @@ public class CommonSettingsModelValidatorTests
|
||||
result.Errors.Should().ContainSingle()
|
||||
.Which.ErrorMessage.Should().Be(Errors.Configuration.ApplicationThemeCannotBeEmpty.Code);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
-6
@@ -16,12 +16,9 @@ namespace Lumina.Infrastructure.UnitTests.Common.Validators;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class DatabaseSettingsModelValidatorTests
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
private readonly DatabaseSettingsModelValidator _validator;
|
||||
private readonly IFixture _fixture;
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CommonSettingsModelValidatorTests"/> class.
|
||||
/// </summary>
|
||||
@@ -30,9 +27,7 @@ public class DatabaseSettingsModelValidatorTests
|
||||
_fixture = new Fixture().Customize(new AutoNSubstituteCustomization());
|
||||
_validator = new();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
[Fact]
|
||||
public void DatabaseSettingsModelValidator_WhenDefaultConnectionProvided_ShouldNotHaveValidationError()
|
||||
{
|
||||
@@ -65,5 +60,4 @@ public class DatabaseSettingsModelValidatorTests
|
||||
result.Errors.Should().ContainSingle()
|
||||
.Which.ErrorMessage.Should().Be(Errors.Configuration.DatabaseConnectionStringCannotBeEmpty.Code);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user