< 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:28
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;
 2
 3namespace DCL.Chat.Notifications
 4{
 5    /// <summary>
 6    /// Plugin feature that initialize the chat notifications feature.
 7    /// </summary>
 8    public class ChatNotificationsFeature : IPlugin
 9    {
 10        private readonly ChatNotificationController chatNotificationController;
 11
 012        public ChatNotificationsFeature()
 13        {
 014            chatNotificationController = CreateController();
 015        }
 16
 017        private ChatNotificationController CreateController() => new ChatNotificationController(DataStore.i,
 18            MainChatNotificationsComponentView.Create(), TopNotificationComponentView.Create(),
 19            ChatController.i,
 20            new UserProfileWebInterfaceBridge(),
 21            ProfanityFilterSharedInstances.regexFilter);
 22
 23        public void Dispose()
 24        {
 025            chatNotificationController.Dispose();
 026        }
 27    }
 28}