< Summary

Class:MainScripts.DCL.Controllers.HUD.SettingsPanelHUDDesktop.Scripts.DropdownControlViewDesktop
Assembly:SettingsPanelHUDDesktop
File(s):/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Controllers/HUD/SettingsPanelHUDDesktop/Scripts/DropdownControlViewDesktop.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:29
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Initialize(...)0%2100%
OnDestroy()0%2100%
OnSettingsChanged(...)0%2100%

File(s)

/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Controllers/HUD/SettingsPanelHUDDesktop/Scripts/DropdownControlViewDesktop.cs

#LineLine coverage
 1using DCL.SettingsCommon;
 2using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 3using DCL.SettingsPanelHUD.Controls;
 4using MainScripts.DCL.Controllers.SettingsDesktop;
 5
 6namespace MainScripts.DCL.Controllers.HUD.SettingsPanelHUDDesktop.Scripts
 7{
 8    public class DropdownControlViewDesktop : DropdownControlView
 9    {
 010        private ISettingsRepository<DisplaySettings> displaySettings => SettingsDesktop.SettingsDesktop.i.displaySetting
 11
 12        public override void Initialize(SettingsControlModel controlConfig, SettingsControlController settingsControlCon
 13        {
 014            base.Initialize(controlConfig, settingsControlController);
 015            displaySettings.OnChanged += OnSettingsChanged;
 016        }
 17
 18        protected override void OnDestroy()
 19        {
 020            base.OnDestroy();
 021            displaySettings.OnChanged -= OnSettingsChanged;
 022        }
 23
 24        private void OnSettingsChanged(DisplaySettings newSettings)
 25        {
 026            RefreshControl();
 027        }
 28    }
 29}