aba4173827
Share template keys across email and push with independent editors and revisions. Render localized actions and preserve version-one delivery. Ref: IT-1627
15 lines
594 B
C#
15 lines
594 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 = email.Id, keyFilter }", view);
|
|
Assert.DoesNotContain("/admin/templates", view);
|
|
}
|
|
}
|