mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06: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
@@ -22,11 +22,8 @@ namespace Lumina.Infrastructure.UnitTests.Common.Utilities;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class OptionsBuilderFluentValidationUtilitiesTests
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
private readonly IFixture _fixture;
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OptionsBuilderFluentValidationUtilitiesTests"/> class.
|
||||
/// </summary>
|
||||
@@ -34,9 +31,7 @@ public class OptionsBuilderFluentValidationUtilitiesTests
|
||||
{
|
||||
_fixture = new Fixture().Customize(new AutoNSubstituteCustomization());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
[Fact]
|
||||
public void ValidateFluently_WhenCalled_ShouldRegisterFluentValidationOptions()
|
||||
{
|
||||
@@ -87,5 +82,4 @@ public class OptionsBuilderFluentValidationUtilitiesTests
|
||||
fluentValidationOptions.Should().NotBeNull();
|
||||
fluentValidationOptions!.Name.Should().Be(name);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
-6
@@ -21,11 +21,8 @@ namespace Lumina.Infrastructure.UnitTests.Common.Validation;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class FluentValidationOptionsTests
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
private readonly IFixture _fixture;
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FluentValidationOptionsTests"/> class.
|
||||
/// </summary>
|
||||
@@ -33,9 +30,7 @@ public class FluentValidationOptionsTests
|
||||
{
|
||||
_fixture = new Fixture().Customize(new AutoNSubstituteCustomization());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
[Fact]
|
||||
public void Validate_WhenMatchingName_ShouldValidateOptions()
|
||||
{
|
||||
@@ -131,5 +126,4 @@ public class FluentValidationOptionsTests
|
||||
.Which.Should().Contain("Options validation failed for 'PropertyName' with error: 'Error Message'");
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
-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