< Summary

Information
Class: TeleFlow.Telegram.I18n.Fluent.Internal.FluentCatalogRuntimeValidator
Assembly: TeleFlow.Framework.I18n.Fluent
File(s): /_/src/TeleFlow.Framework.I18n.Fluent/Internal/FluentCatalogRuntimeValidator.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 15
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Validate(...)100%11100%

File(s)

/_/src/TeleFlow.Framework.I18n.Fluent/Internal/FluentCatalogRuntimeValidator.cs

#LineLine coverage
 1using TeleFlow.Framework.Application;
 2
 3namespace TeleFlow.Telegram.I18n.Fluent.Internal;
 4
 5/// <summary>
 6/// Loads and validates every configured Fluent resource before the first Telegram update can reach the application pipe
 7/// </summary>
 8internal sealed class FluentCatalogRuntimeValidator(FluentCatalog catalog) : ITeleFlowRuntimeValidator
 9{
 10    public void Validate(IServiceProvider services)
 11    {
 2612        ArgumentNullException.ThrowIfNull(services);
 2613        catalog.Initialize();
 2414    }
 15}