From 04c387a3c4e9ece5be7e2bd7e7bd686fb67a8d2b Mon Sep 17 00:00:00 2001 From: Mika Herrmann Date: Thu, 19 Dec 2024 13:57:33 +0100 Subject: [PATCH] fix: Exclude `DatawalletModificationsCreatedPushNotification` from tests --- .../NotificationTexts/PushNotificationTextProviderTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/Devices/test/Devices.Infrastructure.Tests/Tests/PushNotifications/NotificationTexts/PushNotificationTextProviderTests.cs b/Modules/Devices/test/Devices.Infrastructure.Tests/Tests/PushNotifications/NotificationTexts/PushNotificationTextProviderTests.cs index 480da3cd3e..f6ea264287 100644 --- a/Modules/Devices/test/Devices.Infrastructure.Tests/Tests/PushNotifications/NotificationTexts/PushNotificationTextProviderTests.cs +++ b/Modules/Devices/test/Devices.Infrastructure.Tests/Tests/PushNotifications/NotificationTexts/PushNotificationTextProviderTests.cs @@ -1,6 +1,7 @@ using Backbone.BuildingBlocks.Application.PushNotifications; using Backbone.Modules.Devices.Application.Infrastructure.PushNotifications; using Backbone.Modules.Devices.Application.Infrastructure.PushNotifications.Announcements; +using Backbone.Modules.Devices.Application.Infrastructure.PushNotifications.Datawallet; using Backbone.Modules.Devices.Domain.Entities.Identities; using Backbone.Modules.Devices.Infrastructure.PushNotifications.NotificationTexts; @@ -62,7 +63,8 @@ private static IEnumerable GetNotificationTypes() typeof(TestPushNotification) .Assembly.GetTypes() .Where(t => t.IsAssignableTo(typeof(IPushNotification)) && !t.IsInterface) - .Where(t => t != typeof(NewAnnouncementPushNotification)); // `NewAnnouncementPushNotification` does not have a translatable text and must therefore be excluded + .Where(t => t != typeof(NewAnnouncementPushNotification)) // `NewAnnouncementPushNotification` does not have a translatable text and must therefore be excluded + .Where(t => t != typeof(DatawalletModificationsCreatedPushNotification)); //`DatawalletModificationsCreatedPushNotification` is empty and must therefore be excluded } private class AllSupportedLanguagesExceptEnglishCrossJoinedWithNotificationTypes : TheoryData