mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Adapts the tests and fixtures to the refactored domain and persistence layers
This commit is contained in:
1 parent
e6f0c63feb
commit
ef913f5c9e
99 files changed
+612
-171
No files matched your search
+1
-6
@@ -2,7 +2,6 @@
|
||||
using Bogus;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Domain.Common.ValueObjects.Metadata;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
@@ -32,14 +31,10 @@ public class LanguageInfoFixture
|
||||
{
|
||||
string[] languages = ["en", "es", "fr", "de", "it", "ja", "ko", "zh", "pt", "ru"];
|
||||
|
||||
Result<LanguageInfo> languageInfoResult = LanguageInfo.Create(
|
||||
return LanguageInfo.Create(
|
||||
languageCode ?? _faker.PickRandom(languages),
|
||||
languageName ?? _faker.Lorem.Word(),
|
||||
nativeName ?? Optional<string>.Some(_faker.Lorem.Word()));
|
||||
|
||||
if (languageInfoResult.IsFailure)
|
||||
throw new InvalidOperationException("Failed to create LanguageInfo: " + string.Join(", ", languageInfoResult.Errors));
|
||||
return languageInfoResult.Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user