Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -6,6 +6,7 @@ using StellaOps.Router.Common.Models;
|
||||
using StellaOps.Router.Transport.InMemory;
|
||||
using Xunit;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Router.Transport.InMemory.Tests;
|
||||
|
||||
public class HelloHeartbeatFlowTests
|
||||
@@ -26,7 +27,8 @@ public class HelloHeartbeatFlowTests
|
||||
_client = provider.GetRequiredService<InMemoryTransportClient>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ConnectAsync_SendsHelloAndRegistersEndpoints()
|
||||
{
|
||||
// Arrange
|
||||
@@ -61,7 +63,8 @@ public class HelloHeartbeatFlowTests
|
||||
Assert.Equal(TransportType.InMemory, connections[0].TransportType);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task SendHeartbeatAsync_SendsHeartbeatFrame()
|
||||
{
|
||||
// Arrange
|
||||
@@ -92,7 +95,8 @@ public class HelloHeartbeatFlowTests
|
||||
Assert.Equal(1, _registry.Count);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task DisconnectAsync_RemovesConnection()
|
||||
{
|
||||
// Arrange
|
||||
|
||||
Reference in New Issue
Block a user