< Summary

Class:MainScripts.DCL.Controllers.HUD.ToSPopupHUD.ToSPopupHandler
Assembly:ToSPopupHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ToSPopupHUD/ToSPopupHandler.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:31
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:4
Method coverage:0% (0 of 4)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ToSPopupHandler(...)0%2100%
Accept()0%2100%
Cancel()0%2100%
ViewToS()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ToSPopupHUD/ToSPopupHandler.cs

#LineLine coverage
 1using DCL.Interface;
 2
 3namespace MainScripts.DCL.Controllers.HUD.ToSPopupHUD
 4{
 5    public class ToSPopupHandler : IToSPopupHandler
 6    {
 7        private readonly BaseVariable<bool> toSPopupVisibleVariable;
 8
 09        public ToSPopupHandler(BaseVariable<bool> toSPopupVisibleVariable)
 10        {
 011            this.toSPopupVisibleVariable = toSPopupVisibleVariable;
 012        }
 13
 14        public void Accept()
 15        {
 016            toSPopupVisibleVariable.Set(false);
 017            WebInterface.SendToSPopupAccepted();
 018        }
 19
 20        public void Cancel()
 21        {
 022            toSPopupVisibleVariable.Set(false);
 023            WebInterface.SendToSPopupRejected();
 024        }
 25
 26        public void ViewToS()
 27        {
 028            WebInterface.SendGoToTos();
 029        }
 30    }
 31}