< Summary

Information
Class: MyNet.UI.Navigation.NavigationStateChangedEventArgs
Assembly: MyNet.UI
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Navigation/NavigationStateChangedEventArgs.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 41
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)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Navigation/NavigationStateChangedEventArgs.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="NavigationStateChangedEventArgs.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8using MyNet.UI.Navigation.Models;
 9
 10namespace MyNet.UI.Navigation;
 11
 12/// <summary>
 13/// Provides data for <see cref="INavigationService.StateChanged"/>.
 14/// </summary>
 15/// <remarks>
 16/// Initializes a new instance of the <see cref="NavigationStateChangedEventArgs"/> class.
 17/// </remarks>
 18/// <param name="currentContext">The current navigation context.</param>
 19/// <param name="canGoBack">Whether backward navigation is available.</param>
 20/// <param name="canGoForward">Whether forward navigation is available.</param>
 921public sealed class NavigationStateChangedEventArgs(
 922    NavigationContext? currentContext,
 923    bool canGoBack,
 924    bool canGoForward) : EventArgs
 25{
 26    /// <summary>
 27    /// Gets the current navigation context after the state change.
 28    /// </summary>
 29    public NavigationContext? CurrentContext { get; } = currentContext;
 30
 31    /// <summary>
 32    /// Gets a value indicating whether backward navigation is available.
 33    /// </summary>
 34    public bool CanGoBack { get; } = canGoBack;
 35
 36    /// <summary>
 37    /// Gets a value indicating whether forward navigation is available.
 38    /// </summary>
 39    public bool CanGoForward { get; } = canGoForward;
 40}
 41