< Summary

Class:UserProfileWebInterfaceBridge
Assembly:UserProfile
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/UserProfile/UserProfileWebInterfaceBridge.cs
Covered lines:1
Uncovered lines:8
Coverable lines:9
Total lines:30
Line coverage:11.1% (1 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SaveUnverifiedName(...)0%2100%
SaveDescription(...)0%2100%
RequestFullUserProfile(...)0%2100%
GetOwn()0%110100%
AddUserProfileToCatalog(...)0%2100%
Get(...)0%2100%
GetByName(...)0%2100%
SignUp()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/UserProfile/UserProfileWebInterfaceBridge.cs

#LineLine coverage
 1using System.Linq;
 2using DCL.Interface;
 3
 4public class UserProfileWebInterfaceBridge : IUserProfileBridge
 5{
 06    public void SaveUnverifiedName(string name) => WebInterface.SendSaveUserUnverifiedName(name);
 7
 08    public void SaveDescription(string description) => WebInterface.SendSaveUserDescription(description);
 9
 010    public void RequestFullUserProfile(string userId) => WebInterface.SendRequestUserProfile(userId);
 11
 100312    public UserProfile GetOwn() => UserProfile.GetOwnUserProfile();
 13
 14    public void AddUserProfileToCatalog(UserProfileModel userProfileModel)
 15    {
 016        UserProfileController.i.AddUserProfileToCatalog(userProfileModel);
 017    }
 18
 19    public UserProfile Get(string userId)
 20    {
 021        return UserProfileController.userProfilesCatalog.Get(userId);
 22    }
 23
 24    public UserProfile GetByName(string userNameOrId)
 25    {
 026        return UserProfileController.userProfilesCatalog.GetValues().FirstOrDefault(p => p.userName == userNameOrId);
 27    }
 28
 029    public void SignUp() => WebInterface.RedirectToSignUp();
 30}