< Summary

Class:PlayerPassportPlugin
Assembly:PassportHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Passport/Passport/PlayerPassportPlugin.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:79
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PlayerPassportPlugin()0%2100%
Dispose()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Passport/Passport/PlayerPassportPlugin.cs

#LineLine coverage
 1using AvatarSystem;
 2using DCL;
 3using DCL.ProfanityFiltering;
 4using DCL.Social.Friends;
 5using DCl.Social.Passports;
 6using DCL.Social.Passports;
 7using DCLServices.CopyPaste.Analytics;
 8using DCLServices.Lambdas.LandsService;
 9using DCLServices.Lambdas.NamesService;
 10using DCLServices.WearablesCatalogService;
 11using MainScripts.DCL.Controllers.HUD.CharacterPreview;
 12using SocialFeaturesAnalytics;
 13using UnityEngine;
 14
 15public class PlayerPassportPlugin : IPlugin
 16{
 17    private readonly PlayerPassportHUDController passportController;
 18
 019    public PlayerPassportPlugin()
 20    {
 021        PlayerPassportReferenceContainer referenceContainer = Object.Instantiate(Resources.Load<GameObject>("PlayerPassp
 22                                                                    .GetComponent<PlayerPassportReferenceContainer>();
 023        referenceContainer.PlayerPreviewView.Initialize(new PreviewCameraRotationController());
 24
 025        var wearablesCatalogService = Environment.i.serviceLocator.Get<IWearablesCatalogService>();
 26
 027        passportController = new PlayerPassportHUDController(
 28                        referenceContainer.PassportView,
 29                        new PassportPlayerInfoComponentController(
 30                            referenceContainer.PlayerInfoView,
 31                            DataStore.i,
 32                            Environment.i.serviceLocator.Get<IProfanityFilter>(),
 33                            Environment.i.serviceLocator.Get<IFriendsController>(),
 34                            new UserProfileWebInterfaceBridge(),
 35                            new SocialAnalytics(
 36                                Environment.i.platform.serviceProviders.analytics,
 37                                new UserProfileWebInterfaceBridge()),
 38                            Environment.i.platform.clipboard,
 39                            new WebInterfacePassportApiBridge()),
 40                        new PassportPlayerPreviewComponentController(
 41                            referenceContainer.PlayerPreviewView,
 42                            new SocialAnalytics(
 43                                Environment.i.platform.serviceProviders.analytics,
 44                                new UserProfileWebInterfaceBridge())),
 45                        new PassportNavigationComponentController(
 46                            referenceContainer.PassportNavigationView,
 47                            Environment.i.serviceLocator.Get<IProfanityFilter>(),
 48                            new WearableItemResolver(wearablesCatalogService),
 49                            wearablesCatalogService,
 50                            Environment.i.serviceLocator.Get<IEmotesCatalogService>(),
 51                            Environment.i.serviceLocator.Get<INamesService>(),
 52                            Environment.i.serviceLocator.Get<ILandsService>(),
 53                            new UserProfileWebInterfaceBridge(),
 54                            DataStore.i,
 55                            new ViewAllComponentController(
 56                                referenceContainer.ViewAllView,
 57                                DataStore.i.HUDs,
 58                                Environment.i.serviceLocator.Get<IWearablesCatalogService>(),
 59                                Environment.i.serviceLocator.Get<ILandsService>(),
 60                                Environment.i.serviceLocator.Get<INamesService>(),
 61                                NotificationsController.i),
 62                            referenceContainer.PassportNavigationView,
 63                            Clipboard.Create(),
 64                            Environment.i.serviceLocator.Get<ICopyPasteAnalyticsService>()),
 65                        new UserProfileWebInterfaceBridge(),
 66                        new WebInterfacePassportApiBridge(),
 67                        new SocialAnalytics(
 68                            Environment.i.platform.serviceProviders.analytics,
 69                            new UserProfileWebInterfaceBridge()),
 70                        DataStore.i,
 71                        SceneReferences.i.mouseCatcher,
 72                        CommonScriptableObjects.playerInfoCardVisibleState);
 073    }
 74
 75    public void Dispose()
 76    {
 077        passportController?.Dispose();
 078    }
 79}

Methods/Properties

PlayerPassportPlugin()
Dispose()