Summary

Class:FakeXrmEasy.FakeMessageExecutors.RetrieveSharedPrincipalsAndAccessRequestExecutor
Assembly:FakeXrmEasy
File(s):F:\Git\fake-xrm-easy\FakeXrmEasy.Shared\FakeMessageExecutors\RetrieveSharedPrincipalsAndAccessRequestExecutor.cs
Covered lines:10
Uncovered lines:0
Coverable lines:10
Total lines:25
Line coverage:100%

Metrics

MethodCyclomatic ComplexitySequence CoverageBranch Coverage
CanExecute(...)1100100
Execute(...)1100100
GetResponsibleRequestType()1100100

File(s)

F:\Git\fake-xrm-easy\FakeXrmEasy.Shared\FakeMessageExecutors\RetrieveSharedPrincipalsAndAccessRequestExecutor.cs

#LineLine coverage
 1using Microsoft.Crm.Sdk.Messages;
 2using Microsoft.Xrm.Sdk;
 3using System;
 4
 5namespace FakeXrmEasy.FakeMessageExecutors
 6{
 7    public class RetrieveSharedPrincipalsAndAccessRequestExecutor : IFakeMessageExecutor
 8    {
 9        public bool CanExecute(OrganizationRequest request)
 3610        {
 3611            return request is RetrieveSharedPrincipalsAndAccessRequest;
 3612        }
 13
 14        public OrganizationResponse Execute(OrganizationRequest request, XrmFakedContext ctx)
 3615        {
 3616            RetrieveSharedPrincipalsAndAccessRequest req = (RetrieveSharedPrincipalsAndAccessRequest)request;
 3617            return ctx.AccessRightsRepository.RetrieveSharedPrincipalsAndAccess(req.Target);
 3618        }
 19
 20        public Type GetResponsibleRequestType()
 426421        {
 426422            return typeof(RetrieveSharedPrincipalsAndAccessRequest);
 426423        }
 24    }
 25}