Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1using System;
 2using Microsoft.Crm.Sdk.Messages;
 3using Microsoft.Xrm.Sdk;
 4using Microsoft.Xrm.Sdk.Query;
 5
 6namespace FakeXrmEasy.FakeMessageExecutors
 7{
 8    public class FetchXmlToQueryExpressionRequestExecutor : IFakeMessageExecutor
 9    {
 10        public bool CanExecute(OrganizationRequest request)
 611        {
 612            return request is FetchXmlToQueryExpressionRequest;
 613        }
 14
 15        public OrganizationResponse Execute(OrganizationRequest request, XrmFakedContext ctx)
 616        {
 617            var req = request as FetchXmlToQueryExpressionRequest;
 618            var service = ctx.GetOrganizationService();
 619            FetchXmlToQueryExpressionResponse response = new FetchXmlToQueryExpressionResponse();
 1220            response["Query"] = XrmFakedContext.TranslateFetchXmlDocumentToQueryExpression(ctx, XrmFakedContext.ParseFet
 621            return response;
 622        }
 23
 24        public Type GetResponsibleRequestType()
 426425        {
 426426            return typeof(FetchXmlToQueryExpressionRequest);
 426427        }
 28    }
 29}