< Summary

Information
Class: MyNet.UI.Toasting.Settings.ToastSettings
Assembly: MyNet.UI
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Toasting/Settings/ToastSettings.cs
Tag: 323_28699572109
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 36
Line coverage: 0%
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
get_Default()100%210%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Toasting/Settings/ToastSettings.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="ToastSettings.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.UI.Toasting.Settings;
 10
 11/// <summary>
 12/// Settings for configuring the behavior of an individual toast notification.
 13/// </summary>
 14public class ToastSettings
 15{
 16    /// <summary>
 17    /// Gets the default toast settings.
 18    /// </summary>
 019    public static ToastSettings Default => new();
 20
 21    /// <summary>
 22    /// Gets or sets the strategy for closing the toast notification.
 23    /// </summary>
 24    public ToastClosingStrategy ClosingStrategy { get; set; } = ToastClosingStrategy.AutoClose;
 25
 26    /// <summary>
 27    /// Gets or sets a value indicating whether the toast notification should freeze when the mouse enters it.
 28    /// </summary>
 29    public bool FreezeOnMouseEnter { get; set; } = true;
 30
 31    /// <summary>
 32    /// Gets or sets the duration for which the toast notification should be displayed before it is automatically closed
 33    /// </summary>
 34    public TimeSpan? Duration { get; set; }
 35}
 36

Methods/Properties

get_Default()