< Summary

Class:DCL.ServiceLocatorFactory
Assembly:ServiceLocatorFactory
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/Factories/ServiceLocatorFactory/ServiceLocatorFactory.cs
Covered lines:22
Uncovered lines:0
Coverable lines:22
Total lines:43
Line coverage:100% (22 of 22)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
CreateDefault()0%18180100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/Factories/ServiceLocatorFactory/ServiceLocatorFactory.cs

#LineLine coverage
 1using DCL.Controllers;
 2using DCL.Rendering;
 3using UnityEngine;
 4
 5namespace DCL
 6{
 7    public static class ServiceLocatorFactory
 8    {
 9        public static ServiceLocator CreateDefault()
 10        {
 62911            var result = new ServiceLocator();
 12
 13            // Platform
 62914            result.Register<IMemoryManager>(() => new MemoryManager());
 62915            result.Register<ICullingController>(CullingController.Create);
 68116            result.Register<IParcelScenesCleaner>(() => new ParcelScenesCleaner());
 62917            result.Register<IClipboard>(Clipboard.Create);
 125818            result.Register<IPhysicsSyncController>(() => new PhysicsSyncController());
 62919            result.Register<IWebRequestController>(WebRequestController.Create);
 68120            result.Register<IServiceProviders>(() => new ServiceProviders());
 125821            result.Register<IUpdateEventHandler>(() => new UpdateEventHandler());
 22
 23            // World runtime
 125824            result.Register<IIdleChecker>(() => new IdleChecker());
 125825            result.Register<IAvatarsLODController>(() => new AvatarsLODController());
 125826            result.Register<IFeatureFlagController>(() => new FeatureFlagController());
 125827            result.Register<ISceneController>(() => new SceneController());
 125828            result.Register<IWorldState>(() => new WorldState());
 125829            result.Register<IPointerEventsController>(() => new PointerEventsController());
 125830            result.Register<ISceneBoundsChecker>(() => new SceneBoundsChecker());
 125831            result.Register<IWorldBlockersController>(() => new WorldBlockersController());
 125832            result.Register<IRuntimeComponentFactory>(() => new RuntimeComponentFactory());
 33
 125834            result.Register<IMessagingControllersManager>(() => new MessagingControllersManager());
 35
 36            // HUD
 125837            result.Register<IHUDFactory>(() => new HUDFactory());
 125838            result.Register<IHUDController>(() => new HUDController());
 39
 62940            return result;
 41        }
 42    }
 43}

Methods/Properties

CreateDefault()