-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from DynamicsValue/new-messages
New messages
- Loading branch information
Showing
27 changed files
with
845 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=isdefault/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
18 changes: 18 additions & 0 deletions
18
src/FakeXrmEasy.Messages/ContextProperties/CurrentOrganizationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#if FAKE_XRM_EASY_9 || FAKE_XRM_EASY_365 || FAKE_XRM_EASY_2016 || FAKE_XRM_EASY_2015 | ||
|
||
using Microsoft.Xrm.Sdk.Organization; | ||
|
||
namespace FakeXrmEasy.Messages.ContextProperties | ||
{ | ||
/// <summary> | ||
/// Stores information about the current organization details | ||
/// </summary> | ||
public class CurrentOrganizationDetails | ||
{ | ||
/// <summary> | ||
/// The organization details | ||
/// </summary> | ||
public OrganizationDetail Details { get; set; } | ||
} | ||
} | ||
#endif |
18 changes: 18 additions & 0 deletions
18
...mEasy.Messages/Exceptions/ExportPdfDocumentRequest/EntityTypeCodeNotSpecifiedException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the EntityTypeCode parameter is missing | ||
/// </summary> | ||
public class EntityTypeCodeNotSpecifiedException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public EntityTypeCodeNotSpecifiedException() : base("When executing ExportPdfDocument request, EntityTypeCode parameter is required but was not specified") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...keXrmEasy.Messages/Exceptions/ExportPdfDocumentRequest/EntityTypeCodeNotValidException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the EntityTypeCode parameter is not a valid integer | ||
/// </summary> | ||
public class EntityTypeCodeNotValidException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public EntityTypeCodeNotValidException() : base("When executing ExportPdfDocument request, EntityTypeCode parameter is required but is not valid") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...rmEasy.Messages/Exceptions/ExportPdfDocumentRequest/SelectedRecordsIsNotValidException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the SelectedRecords parameter doesn't have a valid format | ||
/// </summary> | ||
public class SelectedRecordsIsNotValidException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public SelectedRecordsIsNotValidException() : base("When executing ExportPdfDocument request, SelectedRecords parameter is required but not valid. Must be a string representation of an array of Guid's") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...eXrmEasy.Messages/Exceptions/ExportPdfDocumentRequest/SelectedRecordsNotFoundException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the SelectedRecords parameter is valid but not found | ||
/// </summary> | ||
public class SelectedRecordsNotFoundException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public SelectedRecordsNotFoundException() : base("When executing ExportPdfDocument request, SelectedRecords parameter was specified but at least one record was not found") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...Easy.Messages/Exceptions/ExportPdfDocumentRequest/SelectedRecordsNotSpecifiedException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the SelectedRecords parameter is missing | ||
/// </summary> | ||
public class SelectedRecordsNotSpecifiedException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public SelectedRecordsNotSpecifiedException() : base("When executing ExportPdfDocument request, SelectedRecords parameter is required but was not specified") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ges/Exceptions/ExportPdfDocumentRequest/SelectedTemplateMustBeEntityReferenceException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the SelectedTemplate was specified but not a valid EntityReference | ||
/// </summary> | ||
public class SelectedTemplateMustBeEntityReferenceException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public SelectedTemplateMustBeEntityReferenceException() : base("When executing ExportPdfDocument request, SelectedTemplate must be an EntityReference to a document template record") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...XrmEasy.Messages/Exceptions/ExportPdfDocumentRequest/SelectedTemplateNotFoundException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the SelectedTemplate was specified but not found (it doesn't exists) | ||
/// </summary> | ||
public class SelectedTemplateNotFoundException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public SelectedTemplateNotFoundException() : base("When executing ExportPdfDocument request, a SelectedTemplate was specified in the request but not found") | ||
{ | ||
|
||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...asy.Messages/Exceptions/ExportPdfDocumentRequest/SelectedTemplateNotSpecifiedException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.ExportPdfDocumentRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the SelectedTemplate parameter is missing | ||
/// </summary> | ||
public class SelectedTemplateNotSpecifiedException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
public SelectedTemplateNotSpecifiedException() : base("When executing ExportPdfDocument request, SelectedTemplate parameter is required but was not specified") | ||
{ | ||
|
||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ages/Exceptions/NavigateToNextEntityOrganizationRequest/CurrentEntityNotFoundException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.NavigateToNextEntityOrganizationRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the entity record of the current stage associated to a given business process does not exist | ||
/// </summary> | ||
public class CurrentEntityNotFoundException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
/// <param name="logicalName"></param> | ||
/// <param name="id"></param> | ||
public CurrentEntityNotFoundException(string logicalName, Guid id): | ||
base($"There is no current entity record with logical name '{logicalName}' and Id '{id}'") | ||
{ | ||
|
||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...essages/Exceptions/NavigateToNextEntityOrganizationRequest/NextEntityNotFoundException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
|
||
namespace FakeXrmEasy.Messages.Exceptions.NavigateToNextEntityOrganizationRequest | ||
{ | ||
/// <summary> | ||
/// Exception raised when the record of the the next stage in a given business process does not exist | ||
/// </summary> | ||
public class NextEntityNotFoundException: Exception | ||
{ | ||
/// <summary> | ||
/// Default constructor | ||
/// </summary> | ||
/// <param name="logicalName"></param> | ||
/// <param name="id"></param> | ||
public NextEntityNotFoundException(string logicalName, Guid id): | ||
base($"There is no next entity record with logical name '{logicalName}' and Id '{id}'") | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.