Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -2,11 +2,13 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Notify.Models.Tests;
|
||||
|
||||
public sealed class NotifyRuleTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void ConstructorThrowsWhenActionsMissing()
|
||||
{
|
||||
var match = NotifyRuleMatch.Create(eventKinds: new[] { NotifyEventKinds.ScannerReportReady });
|
||||
@@ -22,7 +24,8 @@ public sealed class NotifyRuleTests
|
||||
Assert.Contains("At least one action is required", exception.Message, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void ConstructorNormalizesCollections()
|
||||
{
|
||||
var rule = NotifyRule.Create(
|
||||
|
||||
Reference in New Issue
Block a user