< Summary

Information
Class: TeleFlow.Telegram.Internal.Handlers.TelegramRouteSelection
Assembly: TeleFlow.Framework
File(s): /_/src/TeleFlow.Framework/Internal/Handlers/TelegramRouteSelection.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 28
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
.ctor(...)100%11100%

File(s)

/_/src/TeleFlow.Framework/Internal/Handlers/TelegramRouteSelection.cs

#LineLine coverage
 1namespace TeleFlow.Telegram.Internal.Handlers;
 2
 3internal sealed class TelegramRouteSelection
 4{
 5    public TelegramRouteSelection(
 6        TelegramHandlerDescriptor handler,
 7        TelegramRouteDescriptor route,
 8        IReadOnlyDictionary<string, object?> routeValues,
 9        object? callbackPayload)
 10    {
 32211        ArgumentNullException.ThrowIfNull(handler);
 32212        ArgumentNullException.ThrowIfNull(route);
 32213        ArgumentNullException.ThrowIfNull(routeValues);
 14
 15        Handler = handler;
 16        Route = route;
 17        RouteValues = routeValues;
 18        CallbackPayload = callbackPayload;
 32219    }
 20
 21    public TelegramHandlerDescriptor Handler { get; }
 22
 23    public TelegramRouteDescriptor Route { get; }
 24
 25    public IReadOnlyDictionary<string, object?> RouteValues { get; }
 26
 27    public object? CallbackPayload { get; }
 28}