81654c0d33
Add normalized service and template catalogs, scoped administration, migration, validation, and regression coverage. Ref: IT-1601
15 lines
597 B
C#
15 lines
597 B
C#
namespace HrynCo.NotificationService.Web.IntegrationTests;
|
|
|
|
public sealed class AdminTemplatesIndexViewTests
|
|
{
|
|
[Fact]
|
|
public void CreateAndEditLinks_KeepTheirServiceAndKeyFilter()
|
|
{
|
|
string view = File.ReadAllText(Path.Combine(AppContext.BaseDirectory, "TestViews", "Index.cshtml"));
|
|
Assert.Contains("asp-route-serviceId=\"@serviceId\"", view);
|
|
Assert.Contains("asp-route-keyFilter=\"@keyFilter\"", view);
|
|
Assert.Contains("new { serviceId, definitionId = template.Id, keyFilter }", view);
|
|
Assert.DoesNotContain("/admin/templates", view);
|
|
}
|
|
}
|