< Summary

Class:DCL.Chat.Notifications.ChatNotificationsFeature
Assembly:NotificationMessagesHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/NotificationMessagesHUD/ChatNotificationsFeature.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:29
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ChatNotificationsFeature()0%2100%
CreateController()0%2100%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/NotificationMessagesHUD/ChatNotificationsFeature.cs

#LineLine coverage
 1using DCL.Chat.Channels;
 2using DCL.Social.Chat;
 3
 4namespace DCL.Chat.Notifications
 5{
 6    /// <summary>
 7    /// Plugin feature that initialize the chat notifications feature.
 8    /// </summary>
 9    public class ChatNotificationsFeature : IPlugin
 10    {
 11        private readonly ChatNotificationController chatNotificationController;
 12
 013        public ChatNotificationsFeature()
 14        {
 015            chatNotificationController = CreateController();
 016        }
 17
 018        private ChatNotificationController CreateController() => new ChatNotificationController(DataStore.i,
 19            MainChatNotificationsComponentView.Create(), TopNotificationComponentView.Create(),
 20            ChatController.i,
 21            new UserProfileWebInterfaceBridge(),
 22            ProfanityFilterSharedInstances.regexFilter);
 23
 24        public void Dispose()
 25        {
 026            chatNotificationController.Dispose();
 027        }
 28    }
 29}