Skip to content

Commit

Permalink
fix: Exclude DatawalletModificationsCreatedPushNotification from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MH321Productions committed Dec 19, 2024
1 parent 3853c02 commit 04c387a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -62,7 +63,8 @@ private static IEnumerable<Type> 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<CommunicationLanguage, Type>
Expand Down

0 comments on commit 04c387a

Please sign in to comment.