Class: | FakeXrmEasy.FakeOrganizationServiceFault |
---|---|
Assembly: | FakeXrmEasy |
File(s): | C:\code\jordimontana82\fake-xrm-easy\FakeXrmEasy.Shared\FakeOrganizationServiceFault.cs |
Covered lines: | 2 |
Uncovered lines: | 0 |
Coverable lines: | 2 |
Total lines: | 13 |
Line coverage: | 100% |
Method | Cyclomatic Complexity | Sequence Coverage | Branch Coverage |
---|---|---|---|
Throw(...) | 1 | 100 | 100 |
# | Line | Line coverage | ||
---|---|---|---|---|
1 | using Microsoft.Xrm.Sdk; | |||
2 | using System.ServiceModel; | |||
3 |
| |||
4 | namespace FakeXrmEasy | |||
5 | { | |||
6 | public class FakeOrganizationServiceFault | |||
7 | { | |||
8 | public static void Throw(ErrorCodes errorCode, string message) | |||
136 | 9 | { | ||
136 | 10 | throw new FaultException<OrganizationServiceFault>(new OrganizationServiceFault() { ErrorCode = (int)errorCo | ||
11 | } | |||
12 | } | |||
13 | } |