< 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:30
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.Social.Chat;
 2using DCL.Social.Friends;
 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            FriendsController.i,
 22            new UserProfileWebInterfaceBridge(),
 23            ProfanityFilterSharedInstances.regexFilter);
 24
 25        public void Dispose()
 26        {
 027            chatNotificationController.Dispose();
 028        }
 29    }
 30}