24 lines
981 B
C#
24 lines
981 B
C#
using NeonSprawl.Server.Game.Crafting;
|
|
|
|
namespace NeonSprawl.Server.Tests.Game.Crafting;
|
|
|
|
internal static class RecipeCatalogTestPaths
|
|
{
|
|
internal static string DiscoverRepoRecipesDirectory() =>
|
|
RecipeCatalogPathResolution.TryDiscoverRecipesDirectory(AppContext.BaseDirectory)
|
|
?? throw new InvalidOperationException(
|
|
"Could not discover repo content/recipes from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");
|
|
|
|
internal static string DiscoverRepoRecipeDefSchemaPath() =>
|
|
RecipeCatalogPathResolution.ResolveRecipeDefSchemaPath(
|
|
DiscoverRepoRecipesDirectory(),
|
|
configuredSchemaPath: null,
|
|
contentRootPath: string.Empty);
|
|
|
|
internal static string DiscoverRepoRecipeIoRowSchemaPath() =>
|
|
RecipeCatalogPathResolution.ResolveRecipeIoRowSchemaPath(
|
|
DiscoverRepoRecipesDirectory(),
|
|
configuredSchemaPath: null,
|
|
contentRootPath: string.Empty);
|
|
}
|