< Summary

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

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Toasting/Filters/AllToastsFilter.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="AllToastsFilter.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using MyNet.UI.Notifications.Models;
 8
 9namespace MyNet.UI.Toasting.Filters;
 10
 11/// <summary>
 12/// Implements a toast filter that allows all notifications to be displayed as toasts, without any filtering or exclusio
 13/// </summary>
 14public sealed class AllToastsFilter : IToastFilter
 15{
 16    /// <inheritdoc />
 1517    public bool ShouldDisplay(INotification notification) => true;
 18}
 19