Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -2,6 +2,7 @@ using System.Net.Http.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Notify.WebService.Tests;
|
||||
|
||||
public sealed class NormalizeEndpointsTests : IClassFixture<WebApplicationFactory<Program>>, IAsyncLifetime
|
||||
@@ -25,7 +26,8 @@ public sealed class NormalizeEndpointsTests : IClassFixture<WebApplicationFactor
|
||||
|
||||
public Task DisposeAsync() => Task.CompletedTask;
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task RuleNormalizeAddsSchemaVersion()
|
||||
{
|
||||
var client = _factory.CreateClient();
|
||||
@@ -41,7 +43,8 @@ public sealed class NormalizeEndpointsTests : IClassFixture<WebApplicationFactor
|
||||
Assert.Equal("notify.rule@1", normalized?["schemaVersion"]?.GetValue<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task ChannelNormalizeAddsSchemaVersion()
|
||||
{
|
||||
var client = _factory.CreateClient();
|
||||
@@ -57,7 +60,8 @@ public sealed class NormalizeEndpointsTests : IClassFixture<WebApplicationFactor
|
||||
Assert.Equal("notify.channel@1", normalized?["schemaVersion"]?.GetValue<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public async Task TemplateNormalizeAddsSchemaVersion()
|
||||
{
|
||||
var client = _factory.CreateClient();
|
||||
|
||||
Reference in New Issue
Block a user