Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -6,7 +6,8 @@ namespace StellaOps.Graph.Api.Tests;
|
||||
|
||||
public class AuditLoggerTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void LogsAndCapsSize()
|
||||
{
|
||||
var logger = new InMemoryAuditLogger();
|
||||
@@ -27,6 +28,7 @@ public class AuditLoggerTests
|
||||
Assert.True(recent.Count <= 100);
|
||||
// First entry is the most recent (minute 509). Verify using total minutes from epoch.
|
||||
var minutesFromEpoch = (int)(recent.First().Timestamp - DateTimeOffset.UnixEpoch).TotalMinutes;
|
||||
using StellaOps.TestKit;
|
||||
Assert.Equal(509, minutesFromEpoch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user