diff --git a/.gitignore b/.gitignore
index 0c7177b9..10f565b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -206,4 +206,7 @@ reportgenerator
#Coverage results
coverage/
-nupkgs/
\ No newline at end of file
+nupkgs/
+
+#Ignore JetBrains rider
+.idea/
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c06719a8..c8da62a3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## [2.3.2]
+
+### Changed
+
+- Update legacy CRM SDK 2011 dependency to use official MS package - https://github.com/DynamicsValue/fake-xrm-easy/issues/105
+
## [2.3.0]
### Changed
diff --git a/src/FakeXrmEasy.Core/Extensions/TypeExtensions.cs b/src/FakeXrmEasy.Core/Extensions/TypeExtensions.cs
index fccd9ae3..8b595b5a 100644
--- a/src/FakeXrmEasy.Core/Extensions/TypeExtensions.cs
+++ b/src/FakeXrmEasy.Core/Extensions/TypeExtensions.cs
@@ -11,7 +11,7 @@ namespace FakeXrmEasy.Extensions
public static class TypeExtensions
{
///
- ///
+ /// Returns true if the type is an OptionSetValue
///
///
///
@@ -24,6 +24,12 @@ public static bool IsOptionSet(this Type t)
}
#if FAKE_XRM_EASY_9
+
+ ///
+ /// Returns true if the type is an OptionSetValueCollection
+ ///
+ ///
+ ///
public static bool IsOptionSetValueCollection(this Type t)
{
var nullableType = Nullable.GetUnderlyingType(t);
@@ -32,7 +38,7 @@ public static bool IsOptionSetValueCollection(this Type t)
#endif
///
- ///
+ /// Returns true if the type is a DateTime
///
///
///
@@ -44,7 +50,7 @@ public static bool IsDateTime(this Type t)
}
///
- ///
+ /// Returns true if the type is a Nullable Enum
///
///
///
@@ -57,7 +63,7 @@ public static bool IsNullableEnum(this Type t)
}
///
- ///
+ /// Gets the PropertyInfo for an attribute of an earlybound type
///
///
///
diff --git a/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj b/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj
index 9e0d2ebf..1d6ec444 100644
--- a/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj
+++ b/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj
@@ -9,7 +9,7 @@
net452
net452
FakeXrmEasy.Core
- 2.3.0
+ 2.3.2
Jordi Montaña
Dynamics Value
FakeXrmEasy Core
@@ -34,31 +34,31 @@
- DEBUG;TRACE;FAKE_XRM_EASY_9
+ DEBUG;TRACE;FAKE_XRM_EASY_9;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY
+ DEBUG;TRACE;FAKE_XRM_EASY;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_2013
+ DEBUG;TRACE;FAKE_XRM_EASY_2013;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_2015
+ DEBUG;TRACE;FAKE_XRM_EASY_2015;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_2016
+ DEBUG;TRACE;FAKE_XRM_EASY_2016;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_365
+ DEBUG;TRACE;FAKE_XRM_EASY_365;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_9
+ DEBUG;TRACE;FAKE_XRM_EASY_9;FXE_V2
@@ -95,10 +95,10 @@
-
-
-
-
+
+
+
+
@@ -107,25 +107,25 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/src/FakeXrmEasy.Core/Middleware/Crud/FakeMessageExecutors/UpsertRequestExecutor.cs b/src/FakeXrmEasy.Core/Middleware/Crud/FakeMessageExecutors/UpsertRequestExecutor.cs
index 7455bea1..644c6787 100644
--- a/src/FakeXrmEasy.Core/Middleware/Crud/FakeMessageExecutors/UpsertRequestExecutor.cs
+++ b/src/FakeXrmEasy.Core/Middleware/Crud/FakeMessageExecutors/UpsertRequestExecutor.cs
@@ -9,13 +9,28 @@
namespace FakeXrmEasy.Middleware.Crud.FakeMessageExecutors
{
+ ///
+ /// Fake Message executor for Upsert requests
+ ///
public class UpsertRequestExecutor : IFakeMessageExecutor
{
+ ///
+ /// Returns true if this message executor can execute the specified request
+ ///
+ ///
+ ///
public bool CanExecute(OrganizationRequest request)
{
return request is UpsertRequest;
}
+
+ ///
+ /// Executes the current request with the given context
+ ///
+ ///
+ ///
+ ///
public OrganizationResponse Execute(OrganizationRequest request, IXrmFakedContext ctx)
{
var fakedContext = ctx as XrmFakedContext;
@@ -44,6 +59,10 @@ public OrganizationResponse Execute(OrganizationRequest request, IXrmFakedContex
return result;
}
+ ///
+ /// Gets request type that will execute this request
+ ///
+ ///
public Type GetResponsibleRequestType()
{
return typeof(UpsertRequest);
diff --git a/src/FakeXrmEasy.Core/XrmRealContext.cs b/src/FakeXrmEasy.Core/XrmRealContext.cs
index a451df87..69f06ad5 100644
--- a/src/FakeXrmEasy.Core/XrmRealContext.cs
+++ b/src/FakeXrmEasy.Core/XrmRealContext.cs
@@ -48,6 +48,9 @@ public class XrmRealContext : IXrmRealContext
///
public ICallerProperties CallerProperties { get; set; }
+ ///
+ /// Plugin Context Properties
+ ///
public IXrmFakedPluginContextProperties PluginContextProperties { get; set; }
///
diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/OrgServiceContextTests/OrgServiceContextTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/OrgServiceContextTests/OrgServiceContextTests.cs
index 4454f603..09fa9af0 100644
--- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/OrgServiceContextTests/OrgServiceContextTests.cs
+++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/OrgServiceContextTests/OrgServiceContextTests.cs
@@ -1,4 +1,5 @@
-using Crm;
+#if !FXE_V2 //Rpcrt4 related, not working on Linux
+using Crm;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Messages;
using System;
@@ -95,4 +96,5 @@ public void When_calling_context_add_addrelated_and_save_changes_entities_are_ad
}
}
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
diff --git a/tests/FakeXrmEasy.Core.Tests/FakeXrmEasy.Core.Tests.csproj b/tests/FakeXrmEasy.Core.Tests/FakeXrmEasy.Core.Tests.csproj
index ae112ec4..76bae833 100644
--- a/tests/FakeXrmEasy.Core.Tests/FakeXrmEasy.Core.Tests.csproj
+++ b/tests/FakeXrmEasy.Core.Tests/FakeXrmEasy.Core.Tests.csproj
@@ -12,7 +12,7 @@
true
FakeXrmEasy.CoreTests
- 2.3.0
+ 2.3.2
Jordi Montaña
Dynamics Value S.L.
Internal Unit test suite for FakeXrmEasy.Core package
@@ -37,31 +37,31 @@
- DEBUG;TRACE;FAKE_XRM_EASY_9
+ DEBUG;TRACE;FAKE_XRM_EASY_9;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY
+ DEBUG;TRACE;FAKE_XRM_EASY;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_2013
+ DEBUG;TRACE;FAKE_XRM_EASY_2013;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_2015
+ DEBUG;TRACE;FAKE_XRM_EASY_2015;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_2016
+ DEBUG;TRACE;FAKE_XRM_EASY_2016;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_365
+ DEBUG;TRACE;FAKE_XRM_EASY_365;FXE_V2
- DEBUG;TRACE;FAKE_XRM_EASY_9
+ DEBUG;TRACE;FAKE_XRM_EASY_9;FXE_V2
@@ -98,10 +98,10 @@
-
-
-
-
+
+
+
+
@@ -115,25 +115,25 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -141,22 +141,22 @@
-
+
-
+
-
+
-
+
-
+
-
+