< 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:31
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.ProfanityFiltering;
 2using DCL.Social.Chat;
 3using DCL.Social.Friends;
 4
 5namespace DCL.Chat.Notifications
 6{
 7    /// <summary>
 8    /// Plugin feature that initialize the chat notifications feature.
 9    /// </summary>
 10    public class ChatNotificationsFeature : IPlugin
 11    {
 12        private readonly ChatNotificationController chatNotificationController;
 13
 014        public ChatNotificationsFeature()
 15        {
 016            chatNotificationController = CreateController();
 017        }
 18
 019        private ChatNotificationController CreateController() => new ChatNotificationController(DataStore.i,
 20            MainChatNotificationsComponentView.Create(), TopNotificationComponentView.Create(),
 21            ChatController.i,
 22            FriendsController.i,
 23            new UserProfileWebInterfaceBridge(),
 24            Environment.i.serviceLocator.Get<IProfanityFilter>());
 25
 26        public void Dispose()
 27        {
 028            chatNotificationController.Dispose();
 029        }
 30    }
 31}