Replaces MVC with FastEndpoints in Lumina.Presentation.Api

This commit is contained in:
BinaryAlley committed 2024-10-23 21:34:10 +03:00
1 parent b1a20716df
commit c7b8bc2f1c
519 files changed
+15329 -8539

No files matched your search

@@ -10,7 +10,6 @@ using System.Diagnostics.CodeAnalysis;
namespace Lumina.Infrastructure.UnitTests.Common.Validators;
/// <summary>
/// Contains unit tests for the <see cref="CommonSettingsModelValidator"/> class.
/// </summary>
@@ -59,6 +58,6 @@ public class CommonSettingsModelValidatorTests
// Assert
result.IsValid.Should().BeFalse();
result.Errors.Should().ContainSingle()
.Which.ErrorMessage.Should().Be(Errors.Configuration.ApplicationThemeCannotBeEmpty.Code);
.Which.ErrorMessage.Should().Be(Errors.Configuration.ApplicationThemeCannotBeEmpty.Description);
}
}
}
@@ -58,6 +58,6 @@ public class DatabaseSettingsModelValidatorTests
// Assert
result.IsValid.Should().BeFalse();
result.Errors.Should().ContainSingle()
.Which.ErrorMessage.Should().Be(Errors.Configuration.DatabaseConnectionStringCannotBeEmpty.Code);
.Which.ErrorMessage.Should().Be(Errors.Configuration.DatabaseConnectionStringCannotBeEmpty.Description);
}
}