From c300afadb5df033b0c633bc016b53a508241dee8 Mon Sep 17 00:00:00 2001 From: Jordi Date: Fri, 13 Oct 2023 02:35:47 +0200 Subject: [PATCH] Update namespaces, upgrade abstractions version, add tests for new FindReflectedType method --- CHANGELOG.md | 8 +- src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj | 12 +-- .../XrmFakedContext.Queries.cs | 78 ++++++++++++++++++- .../Extensions/EntityExtensionsTests.cs | 2 +- .../EntityMetadataExtensionsTests.cs | 2 +- .../OrganizationRequestExtensionsTests.cs | 2 +- .../QueryExpressionExtensionsTests.cs | 2 +- .../DateTimeBehaviourTests.cs | 2 +- .../FakeContextTestCreateQuery.cs | 2 +- .../FakeContextTests/FakeContextTestDelete.cs | 2 +- .../FakeContextTestMetadata.cs | 2 +- .../FakeContextTests.AddEntity.cs | 2 +- .../FakeContextTests/FakeContextTests.cs | 14 +++- .../FakeTracingServiceTests.cs | 2 +- .../ConditionExpressionTests.cs | 2 +- .../FakeContextTestFormattedValues.cs | 2 +- ...FakeContextTestTranslateQueryExpression.cs | 2 +- .../FilterExpressionTests.cs | 2 +- .../DateTime/DateTimeOperatorsTests.cs | 2 +- .../MultiSelectOptionSetTests.cs | 2 +- .../Strings/StringOperatorsTests.cs | 2 +- .../OrderByTests.cs | 2 +- .../ValidateReferencesTests.cs | 2 +- .../XrmFakedRelationshipTests.cs | 2 +- .../FakeXrmEasyTestsBase.cs | 2 +- tests/FakeXrmEasy.Core.Tests/Issue116.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue125.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue156.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue165.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue180.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue191.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue226.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue253.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue256.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue300.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue312.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue328.cs | 2 +- .../FakeXrmEasy.Core.Tests/Issues/Issue467.cs | 2 +- .../TestCRMHandlingOfNullsAndMissingFields.cs | 2 +- .../AssociateRequestTests.cs | 2 +- .../FakeContextTestCreate.cs | 2 +- .../DeleteRequestTests/DeleteRequestTests.cs | 2 +- .../DisassociateRequestTests.cs | 2 +- .../QueryLinkEntityTests.cs | 2 +- .../RetrieveMultipleTests.cs | 2 +- .../RetrieveRequestTests.cs | 2 +- .../UpdateRequestTests/UpdateRequestTests.cs | 2 +- .../UpsertRequestTests/UpsertRequestTests.cs | 2 +- .../MiddlewareBuilderTests.ExecutionMocks.cs | 2 +- ...areBuilderTests.GenericMessageExecutors.cs | 2 +- ...MiddlewareBuilderTests.MessageExecutors.cs | 2 +- .../Middleware/MiddlewareBuilderTests.cs | 2 +- .../Query/FetchXml/AggregateTests.cs | 2 +- .../Query/FetchXml/ConditionOperatorTests.cs | 2 +- .../FakeContextTestFetchXmlTranslation.cs | 2 +- .../Strings/StringOperatorTests.cs | 2 +- .../Query/FetchXml/TypeConversionTests.cs | 2 +- .../EqualityWithDifferentDataTypesTests.cs | 2 +- .../LinqTests/FakeContextTestLinqQueries.cs | 2 +- .../Query/LinqTests/MetadataInferenceTests.cs | 2 +- .../QueryByAttribute/QueryByAttributeTests.cs | 2 +- ...ueryExpressionPagingInfoExtensionsTests.cs | 2 +- .../QueryExpressionTests/TopCountTests.cs | 2 +- .../QueryLookupTests/QueryLookupTests.cs | 2 +- .../Query/QueryTests/BusinessIdTests.cs | 2 +- .../QueryTranslationTests/ProjectionTests.cs | 2 +- .../InvoiceDetailInitializerServiceTests.cs | 2 +- .../InvoiceInitializerServiceTests.cs | 2 +- .../TestDefaultEntityInitializer.cs | 2 +- .../Tracing/IXrmFakedTracingServiceTests.cs | 2 +- .../XrmRealContextTests.cs | 2 +- 71 files changed, 168 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b63ca0e..3a83164b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ ## [2.3.3] +### Added + +- New method to retrieve early bound types based on EntityTypeCode. + ### Changed -- Upgraded GitHub Actions to update Java major version to run SonarCloud analysis - https://github.com/DynamicsValue/fake-xrm-easy/issues/110 -º +- Update namespaces in tests project for consistency + - Upgraded GitHub Actions to update Java major version to run SonarCloud analysis - https://github.com/DynamicsValue/fake-xrm-easy/issues/110 - Introduced new NewEntityRecord method to easily create instances of entity records based on the current use of early-bound or late-bound entities - Resolves an issue with query evaluation and MultiOptionSets when using late bound entities or if type information is not present. - https://github.com/DynamicsValue/fake-xrm-easy/issues/66 diff --git a/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj b/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj index 57b7c203..3e8e07da 100644 --- a/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj +++ b/src/FakeXrmEasy.Core/FakeXrmEasy.Core.csproj @@ -102,22 +102,22 @@ - + - + - + - + - + - + diff --git a/src/FakeXrmEasy.Core/XrmFakedContext.Queries.cs b/src/FakeXrmEasy.Core/XrmFakedContext.Queries.cs index 2457f742..bdd2e55c 100644 --- a/src/FakeXrmEasy.Core/XrmFakedContext.Queries.cs +++ b/src/FakeXrmEasy.Core/XrmFakedContext.Queries.cs @@ -18,7 +18,7 @@ namespace FakeXrmEasy public partial class XrmFakedContext : IXrmFakedContext { /// - /// + /// Finds the early-bound type based on an entity's logical name /// /// /// @@ -45,6 +45,35 @@ public Type FindReflectedType(string logicalName) return types.SingleOrDefault(); } + + /// + /// Finds the early-bound type based on an entity's generated type code + /// + /// + /// + /// + public Type FindReflectedType(int entityTypeCode) + { + var types = + ProxyTypesAssemblies.Select(a => FindReflectedType(entityTypeCode, a)) + .Where(t => t != null); + + if (types.Count() > 1) + { + var errorMsg = $"Type { entityTypeCode } is defined in multiple assemblies: "; + foreach (var type in types) + { + errorMsg += type.Assembly + .GetName() + .Name + "; "; + } + var lastIndex = errorMsg.LastIndexOf("; "); + errorMsg = errorMsg.Substring(0, lastIndex) + "."; + throw new InvalidOperationException(errorMsg); + } + + return types.SingleOrDefault(); + } /// /// Finds reflected type for given entity from given assembly. @@ -92,6 +121,53 @@ private static Type FindReflectedType(string logicalName, throw new Exception("XrmFakedContext.FindReflectedType: " + s); } } + + /// + /// Finds reflected type for given entity from given assembly. + /// + /// + /// Entity logical name which type is searched from given + /// . + /// + /// + /// Assembly where early-bound type is searched for given + /// . + /// + /// + /// Early-bound type of if it's found + /// from . Otherwise null is returned. + /// + private static Type FindReflectedType(int entityTypeCode, + Assembly assembly) + { + try + { + if (assembly == null) + { + throw new ArgumentNullException(nameof(assembly)); + } + + var subClassType = assembly.GetTypes() + .Where(t => typeof(Entity).IsAssignableFrom(t)) + .Where(t => t.GetCustomAttributes(typeof(EntityLogicalNameAttribute), true).Length > 0) + .Where(t => t.GetField("EntityTypeCode").GetValue(null).Equals(entityTypeCode)) + .FirstOrDefault(); + + return subClassType; + } + catch (ReflectionTypeLoadException exception) + { + // now look at ex.LoaderExceptions - this is an Exception[], so: + var s = ""; + foreach (var innerException in exception.LoaderExceptions) + { + // write details of "inner", in particular inner.Message + s += innerException.Message + " "; + } + + throw new Exception("XrmFakedContext.FindReflectedType: " + s); + } + } /// /// diff --git a/tests/FakeXrmEasy.Core.Tests/Extensions/EntityExtensionsTests.cs b/tests/FakeXrmEasy.Core.Tests/Extensions/EntityExtensionsTests.cs index d8dbe1af..431ce04f 100644 --- a/tests/FakeXrmEasy.Core.Tests/Extensions/EntityExtensionsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Extensions/EntityExtensionsTests.cs @@ -5,7 +5,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.Extensions +namespace FakeXrmEasy.Core.Tests.Extensions { public class EntityExtensionsTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Extensions/EntityMetadataExtensionsTests.cs b/tests/FakeXrmEasy.Core.Tests/Extensions/EntityMetadataExtensionsTests.cs index 89942d09..0fdea9d5 100644 --- a/tests/FakeXrmEasy.Core.Tests/Extensions/EntityMetadataExtensionsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Extensions/EntityMetadataExtensionsTests.cs @@ -4,7 +4,7 @@ using Xunit; using System.Collections.Generic; -namespace FakeXrmEasy.Tests.Extensions +namespace FakeXrmEasy.Core.Tests.Extensions { public class EntityMetadataExtensionsTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Extensions/OrganizationRequestExtensionsTests.cs b/tests/FakeXrmEasy.Core.Tests/Extensions/OrganizationRequestExtensionsTests.cs index b89d9724..336be3fe 100644 --- a/tests/FakeXrmEasy.Core.Tests/Extensions/OrganizationRequestExtensionsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Extensions/OrganizationRequestExtensionsTests.cs @@ -7,7 +7,7 @@ using System; using Xunit; -namespace FakeXrmEasy.Tests.Extensions +namespace FakeXrmEasy.Core.Tests.Extensions { public class OrganizationRequestExtensionsTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Extensions/QueryExpressionExtensionsTests.cs b/tests/FakeXrmEasy.Core.Tests/Extensions/QueryExpressionExtensionsTests.cs index 169c732d..411fb662 100644 --- a/tests/FakeXrmEasy.Core.Tests/Extensions/QueryExpressionExtensionsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Extensions/QueryExpressionExtensionsTests.cs @@ -3,7 +3,7 @@ using Microsoft.Xrm.Sdk.Query; using FakeXrmEasy.Query; -namespace FakeXrmEasy.Tests.Extensions +namespace FakeXrmEasy.Core.Tests.Extensions { public class QueryExpressionExtensionsTests { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/DateTimeBehaviourTests/DateTimeBehaviourTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/DateTimeBehaviourTests/DateTimeBehaviourTests.cs index d95e76d0..8f2d9312 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/DateTimeBehaviourTests/DateTimeBehaviourTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/DateTimeBehaviourTests/DateTimeBehaviourTests.cs @@ -10,7 +10,7 @@ using Xunit; using FakeXrmEasy.Extensions; -namespace FakeXrmEasy.Tests.FakeContextTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests { public class DateTimeBehaviourTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestCreateQuery.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestCreateQuery.cs index 7ed340d0..059367fc 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestCreateQuery.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestCreateQuery.cs @@ -7,7 +7,7 @@ using System.Reflection; using Xunit; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeContextTestCreateQuery: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestDelete.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestDelete.cs index c5bab8ce..8acd2d9d 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestDelete.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestDelete.cs @@ -8,7 +8,7 @@ using Xunit; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeXrmEasyTestsDelete : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestMetadata.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestMetadata.cs index 72d81b51..d14f4e33 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestMetadata.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTestMetadata.cs @@ -5,7 +5,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests { public class FakeContextTestMetadata : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.AddEntity.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.AddEntity.cs index 3aacc250..73f1e83c 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.AddEntity.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.AddEntity.cs @@ -2,7 +2,7 @@ using Crm; using Xunit; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeXrmEasyTestsAddEntity : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.cs index fe00466e..b463ffa8 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeContextTests.cs @@ -9,7 +9,7 @@ using Crm; using System.Reflection; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeContextCoreTests : FakeXrmEasyTestsBase { @@ -300,7 +300,7 @@ public void Should_return_entity_by_id() } [Fact] - public void Should_return_error_if_entity_lofical_name_doesnt_exists() + public void Should_return_error_if_entity_logical_name_doesnt_exists() { Assert.Throws(() =>_context.GetEntityById("doesNotExist", Guid.NewGuid())); } @@ -318,5 +318,15 @@ public void Should_return_error_if_entity_id_does_not_exists() Assert.Throws(() =>_context.GetEntityById("contact", Guid.NewGuid())); } + + [Fact] + public void Should_find_reflected_type_by_entity_type_code() { + + var assembly = typeof(Crm.Account).Assembly; + _context.EnableProxyTypes(assembly); + + var type = _context.FindReflectedType(1); + Assert.Equal(typeof(Account), type); + } } } diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeTracingServiceTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeTracingServiceTests.cs index 350d8493..11c96b51 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeTracingServiceTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/FakeTracingServiceTests.cs @@ -1,7 +1,7 @@ using Xunit; using System; -namespace FakeXrmEasy.Tests.FakeContextTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests { public class FakeTracingServiceTests { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/ConditionExpressionTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/ConditionExpressionTests.cs index d1d8fc3b..2572a71a 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/ConditionExpressionTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/ConditionExpressionTests.cs @@ -8,7 +8,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests { public class ConditionExpressionTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestFormattedValues.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestFormattedValues.cs index 9d7df45d..466a5576 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestFormattedValues.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestFormattedValues.cs @@ -7,7 +7,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests { public class FormattedValuesTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestTranslateQueryExpression.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestTranslateQueryExpression.cs index e52fa6c3..14cc79cb 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestTranslateQueryExpression.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FakeContextTestTranslateQueryExpression.cs @@ -10,7 +10,7 @@ using FakeXrmEasy.Abstractions; using FakeXrmEasy.Query; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeContextTestTranslateQueryExpression: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FilterExpressionTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FilterExpressionTests.cs index b9867c4e..cbbe55e8 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FilterExpressionTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/FilterExpressionTests.cs @@ -6,7 +6,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests { public class FilterExpressionTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/DateTime/DateTimeOperatorsTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/DateTime/DateTimeOperatorsTests.cs index 9beff2d2..61d31111 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/DateTime/DateTimeOperatorsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/DateTime/DateTimeOperatorsTests.cs @@ -7,7 +7,7 @@ using Xunit; using FakeXrmEasy.Query; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests.OperatorTests.DateTimes +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests.OperatorTests.DateTimes { public class DateTimeOperatorsTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/MultiSelectOptionSet/MultiSelectOptionSetTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/MultiSelectOptionSet/MultiSelectOptionSetTests.cs index 952c6eb2..87a28849 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/MultiSelectOptionSet/MultiSelectOptionSetTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/MultiSelectOptionSet/MultiSelectOptionSetTests.cs @@ -6,7 +6,7 @@ using Microsoft.Xrm.Sdk.Query; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests.OperatorTests.MultiSelectOptionSet +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests.OperatorTests.MultiSelectOptionSet { public class MultiSelectOptionSetTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/Strings/StringOperatorsTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/Strings/StringOperatorsTests.cs index 8935c0f7..4defa99d 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/Strings/StringOperatorsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OperatorTests/Strings/StringOperatorsTests.cs @@ -7,7 +7,7 @@ using Xunit; using FakeXrmEasy.Query; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests.OperatorTests.Strings +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests.OperatorTests.Strings { public class StringOperatorsTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OrderByTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OrderByTests.cs index 94d5ee5b..fc4c4b8f 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OrderByTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/TranslateQueryExpressionTests/OrderByTests.cs @@ -6,7 +6,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.TranslateQueryExpressionTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.TranslateQueryExpressionTests { public class OrderByTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/ValidateReferencesTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/ValidateReferencesTests.cs index c034767b..f46d45d9 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/ValidateReferencesTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/ValidateReferencesTests.cs @@ -13,7 +13,7 @@ using System.Collections.Generic; -namespace FakeXrmEasy.Tests.FakeContextTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests { public class ValidateReferencesTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/XrmFakedRelationshipTests.cs b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/XrmFakedRelationshipTests.cs index 2af9236e..fe6184fc 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeContextTests/XrmFakedRelationshipTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeContextTests/XrmFakedRelationshipTests.cs @@ -5,7 +5,7 @@ using Xunit; using FakeXrmEasy.Abstractions; -namespace FakeXrmEasy.Tests.FakeContextTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests { public class XrmFakedRelationshipTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/FakeXrmEasyTestsBase.cs b/tests/FakeXrmEasy.Core.Tests/FakeXrmEasyTestsBase.cs index 0c91abac..813e49f0 100644 --- a/tests/FakeXrmEasy.Core.Tests/FakeXrmEasyTestsBase.cs +++ b/tests/FakeXrmEasy.Core.Tests/FakeXrmEasyTestsBase.cs @@ -3,7 +3,7 @@ using FakeXrmEasy.Middleware; using Microsoft.Xrm.Sdk; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issue116.cs b/tests/FakeXrmEasy.Core.Tests/Issue116.cs index d34e964a..42247d28 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issue116.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issue116.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue116 : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue125.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue125.cs index 6ae986b6..b2ad8e50 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue125.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue125.cs @@ -7,7 +7,7 @@ using Xunit; using FakeXrmEasy.Abstractions; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue125 : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue156.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue156.cs index 92e6136f..e5f332b4 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue156.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue156.cs @@ -6,7 +6,7 @@ using System.Reflection; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue156: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue165.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue165.cs index e49d3202..dcac7fb1 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue165.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue165.cs @@ -4,7 +4,7 @@ using Microsoft.Xrm.Sdk.Query; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue165: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue180.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue180.cs index 2c45e03a..b44f0efc 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue180.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue180.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue180 : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue191.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue191.cs index 6e744e20..444a0019 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue191.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue191.cs @@ -3,7 +3,7 @@ using System; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue191: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue226.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue226.cs index 43529786..f5f75acc 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue226.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue226.cs @@ -5,7 +5,7 @@ using System.Text; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue226: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue253.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue253.cs index f8ad4d1a..1f2fe613 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue253.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue253.cs @@ -9,7 +9,7 @@ using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue253: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue256.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue256.cs index 80e2d042..19bc2da8 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue256.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue256.cs @@ -7,7 +7,7 @@ using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue256: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue300.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue300.cs index eb95b4a2..ad3dfbb1 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue300.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue300.cs @@ -5,7 +5,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue300: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue312.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue312.cs index fb3ea859..3c24647d 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue312.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue312.cs @@ -4,7 +4,7 @@ using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue312: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue328.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue328.cs index 1b646dec..ac0bb5bf 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue328.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue328.cs @@ -6,7 +6,7 @@ using Microsoft.Xrm.Sdk.Query; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class Issue328: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/Issue467.cs b/tests/FakeXrmEasy.Core.Tests/Issues/Issue467.cs index 90bc00c0..11bf9b6a 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/Issue467.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/Issue467.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { // https://github.com/jordimontana82/fake-xrm-easy/issues/467 diff --git a/tests/FakeXrmEasy.Core.Tests/Issues/TestCRMHandlingOfNullsAndMissingFields.cs b/tests/FakeXrmEasy.Core.Tests/Issues/TestCRMHandlingOfNullsAndMissingFields.cs index ad19b950..c11acfc6 100644 --- a/tests/FakeXrmEasy.Core.Tests/Issues/TestCRMHandlingOfNullsAndMissingFields.cs +++ b/tests/FakeXrmEasy.Core.Tests/Issues/TestCRMHandlingOfNullsAndMissingFields.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Xunit; -namespace FakeXrmEasy.Tests.Issues +namespace FakeXrmEasy.Core.Tests.Issues { public class TestCRMHandlingOfNullsAndMissingFields: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/AssociateRequestTests/AssociateRequestTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/AssociateRequestTests/AssociateRequestTests.cs index 54014a94..21d38a96 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/AssociateRequestTests/AssociateRequestTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/AssociateRequestTests/AssociateRequestTests.cs @@ -8,7 +8,7 @@ using Xunit; using FakeXrmEasy.Abstractions; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.AssociateRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.AssociateRequestTests { public class AssociateRequestTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/CreateRequestTests/FakeContextTestCreate.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/CreateRequestTests/FakeContextTestCreate.cs index 600f794f..71c65acf 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/CreateRequestTests/FakeContextTestCreate.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/CreateRequestTests/FakeContextTestCreate.cs @@ -10,7 +10,7 @@ using System.Reflection; using Xunit; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.CreateRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.CreateRequestTests { public class CreateRequestTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DeleteRequestTests/DeleteRequestTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DeleteRequestTests/DeleteRequestTests.cs index 277d7c1a..28f2d1d3 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DeleteRequestTests/DeleteRequestTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DeleteRequestTests/DeleteRequestTests.cs @@ -12,7 +12,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.DeleteRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.DeleteRequestTests { public class DeleteRequestTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DisassociateRequestTests/DisassociateRequestTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DisassociateRequestTests/DisassociateRequestTests.cs index abacfa0c..aa4e09d9 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DisassociateRequestTests/DisassociateRequestTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/DisassociateRequestTests/DisassociateRequestTests.cs @@ -6,7 +6,7 @@ using Xunit; using FakeXrmEasy.Abstractions; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.DisassociateRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.DisassociateRequestTests { public class DisassociateRequestTests: FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/QueryLinkEntityTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/QueryLinkEntityTests.cs index 5283fcd3..a3b2450c 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/QueryLinkEntityTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/QueryLinkEntityTests.cs @@ -9,7 +9,7 @@ using Xunit; using FakeXrmEasy.Abstractions; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.RetrieveMultipleRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.RetrieveMultipleRequestTests { public class QueryLinkEntityTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/RetrieveMultipleTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/RetrieveMultipleTests.cs index 32426043..f3c8a7db 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/RetrieveMultipleTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveMultipleRequestTests/RetrieveMultipleTests.cs @@ -7,7 +7,7 @@ using System.Linq; using Xunit; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.RetrieveMultipleRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.RetrieveMultipleRequestTests { public class RetrieveMultipleTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveRequestTests/RetrieveRequestTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveRequestTests/RetrieveRequestTests.cs index a78e2df3..844ff6cf 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveRequestTests/RetrieveRequestTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/RetrieveRequestTests/RetrieveRequestTests.cs @@ -12,7 +12,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.RetrieveRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.RetrieveRequestTests { public class RetrieveRequestTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpdateRequestTests/UpdateRequestTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpdateRequestTests/UpdateRequestTests.cs index 4d64f4b3..4d928e28 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpdateRequestTests/UpdateRequestTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpdateRequestTests/UpdateRequestTests.cs @@ -12,7 +12,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.UpdateRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.UpdateRequestTests { public class UpdateRequestTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpsertRequestTests/UpsertRequestTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpsertRequestTests/UpsertRequestTests.cs index 3946753a..4148ddc9 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpsertRequestTests/UpsertRequestTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/Crud/FakeMessageExecutors/UpsertRequestTests/UpsertRequestTests.cs @@ -7,7 +7,7 @@ using System.Reflection; using Xunit; -namespace FakeXrmEasy.Tests.Middleware.Crud.FakeMessageExecutors.UpsertRequestTests +namespace FakeXrmEasy.Core.Tests.Middleware.Crud.FakeMessageExecutors.UpsertRequestTests { #if !FAKE_XRM_EASY && !FAKE_XRM_EASY_2013 && !FAKE_XRM_EASY_2015 public class UpsertRequestTests : FakeXrmEasyTestsBase diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.ExecutionMocks.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.ExecutionMocks.cs index b1196a6e..e5435c02 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.ExecutionMocks.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.ExecutionMocks.cs @@ -8,7 +8,7 @@ using Microsoft.Xrm.Sdk.Metadata; using FakeXrmEasy.Abstractions.FakeMessageExecutors; -namespace FakeXrmEasy.Tests.Middleware +namespace FakeXrmEasy.Core.Tests.Middleware { public partial class MiddlewareBuilderTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.GenericMessageExecutors.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.GenericMessageExecutors.cs index 601857e9..25d54334 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.GenericMessageExecutors.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.GenericMessageExecutors.cs @@ -10,7 +10,7 @@ using System.Reflection; using FakeXrmEasy.Abstractions.Exceptions; -namespace FakeXrmEasy.Tests.Middleware +namespace FakeXrmEasy.Core.Tests.Middleware { public class GenericMessageExecutorsTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.MessageExecutors.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.MessageExecutors.cs index 8cb4b02b..eea0fad1 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.MessageExecutors.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.MessageExecutors.cs @@ -9,7 +9,7 @@ using FakeXrmEasy.Abstractions.FakeMessageExecutors; using Microsoft.Xrm.Sdk.Metadata; -namespace FakeXrmEasy.Tests.Middleware +namespace FakeXrmEasy.Core.Tests.Middleware { public partial class MiddlewareBuilderTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.cs b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.cs index 7bca9d2f..3f7b01d3 100644 --- a/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Middleware/MiddlewareBuilderTests.cs @@ -9,7 +9,7 @@ using FakeXrmEasy.Abstractions.Enums; using FakeXrmEasy.Abstractions.Exceptions; -namespace FakeXrmEasy.Tests.Middleware +namespace FakeXrmEasy.Core.Tests.Middleware { public partial class MiddlewareBuilderTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/AggregateTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/AggregateTests.cs index 5a7d3806..30bc1852 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/AggregateTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/AggregateTests.cs @@ -8,7 +8,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.FetchXml +namespace FakeXrmEasy.Core.Tests.FakeContextTests.FetchXml { public class AggregateTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/ConditionOperatorTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/ConditionOperatorTests.cs index 3b04970d..b3abaf1a 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/ConditionOperatorTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/ConditionOperatorTests.cs @@ -10,7 +10,7 @@ using FakeXrmEasy.Abstractions.Settings; using FakeXrmEasy.Query; -namespace FakeXrmEasy.Tests.FakeContextTests.FetchXml +namespace FakeXrmEasy.Core.Tests.FakeContextTests.FetchXml { /// /// To test all different condition operators found in FetchXml diff --git a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/FakeContextTestFetchXmlTranslation.cs b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/FakeContextTestFetchXmlTranslation.cs index 99f21c4e..8df51479 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/FakeContextTestFetchXmlTranslation.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/FakeContextTestFetchXmlTranslation.cs @@ -9,7 +9,7 @@ using System.Reflection; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.FetchXml +namespace FakeXrmEasy.Core.Tests.FakeContextTests.FetchXml { /// /// This will test that a fetchxml is correctly translated into a QueryExpression diff --git a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/OperatorTests/Strings/StringOperatorTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/OperatorTests/Strings/StringOperatorTests.cs index 9318a7e2..796b755e 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/OperatorTests/Strings/StringOperatorTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/OperatorTests/Strings/StringOperatorTests.cs @@ -6,7 +6,7 @@ using Xunit; using FakeXrmEasy.Query; -namespace FakeXrmEasy.Tests.FakeContextTests.FetchXml.OperatorTests.Strings +namespace FakeXrmEasy.Core.Tests.FakeContextTests.FetchXml.OperatorTests.Strings { public class StringOperatorTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/TypeConversionTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/TypeConversionTests.cs index b553a592..8acdc891 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/TypeConversionTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/FetchXml/TypeConversionTests.cs @@ -5,7 +5,7 @@ using System.Reflection; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.FetchXml +namespace FakeXrmEasy.Core.Tests.FakeContextTests.FetchXml { public class TypeConversionTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/EqualityWithDifferentDataTypesTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/EqualityWithDifferentDataTypesTests.cs index ad28b1fd..98f44cd3 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/EqualityWithDifferentDataTypesTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/EqualityWithDifferentDataTypesTests.cs @@ -8,7 +8,7 @@ using System.Reflection; //TypedEntities generated code for testing using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.LinqTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.LinqTests { /// /// Test suite to check that all the different CRM types in the SDK are supported: diff --git a/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/FakeContextTestLinqQueries.cs b/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/FakeContextTestLinqQueries.cs index 9da94ddf..cd4a7a80 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/FakeContextTestLinqQueries.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/FakeContextTestLinqQueries.cs @@ -10,7 +10,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class FakeContextTestLinqQueries : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/MetadataInferenceTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/MetadataInferenceTests.cs index 4df1d747..5b3cb20c 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/MetadataInferenceTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/LinqTests/MetadataInferenceTests.cs @@ -10,7 +10,7 @@ using System.Reflection; //TypedEntities generated code for testing using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.LinqTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.LinqTests { public class MetadataInferenceTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/QueryByAttribute/QueryByAttributeTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/QueryByAttribute/QueryByAttributeTests.cs index 4c8e3c10..4f5927c2 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/QueryByAttribute/QueryByAttributeTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/QueryByAttribute/QueryByAttributeTests.cs @@ -10,7 +10,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.QueryByAttributeTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.QueryByAttributeTests { public class Tests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionPagingInfoExtensionsTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionPagingInfoExtensionsTests.cs index e1b5338b..bfbbdca9 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionPagingInfoExtensionsTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionPagingInfoExtensionsTests.cs @@ -2,7 +2,7 @@ using Microsoft.Xrm.Sdk.Query; using Xunit; -namespace FakeXrmEasy.Tests.Query +namespace FakeXrmEasy.Core.Tests.Query { public class QueryExpressionPagingInfoExtensionsTests { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionTests/TopCountTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionTests/TopCountTests.cs index fd11251e..3197091e 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionTests/TopCountTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/QueryExpressionTests/TopCountTests.cs @@ -6,7 +6,7 @@ using System.ServiceModel; using Xunit; -namespace FakeXrmEasy.Tests.Query.QueryExpressionTests +namespace FakeXrmEasy.Core.Tests.Query.QueryExpressionTests { public class TopCountTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/QueryLookupTests/QueryLookupTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/QueryLookupTests/QueryLookupTests.cs index 4b6a45ec..219c9d9b 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/QueryLookupTests/QueryLookupTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/QueryLookupTests/QueryLookupTests.cs @@ -7,7 +7,7 @@ using System.Collections.ObjectModel; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.QueryLookupTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.QueryLookupTests { public class Tests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/QueryTests/BusinessIdTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/QueryTests/BusinessIdTests.cs index fd868c7d..ec795222 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/QueryTests/BusinessIdTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/QueryTests/BusinessIdTests.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.QueryTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.QueryTests { public class EqualBusinessIdTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Query/QueryTranslationTests/ProjectionTests.cs b/tests/FakeXrmEasy.Core.Tests/Query/QueryTranslationTests/ProjectionTests.cs index d89cfbce..95b59762 100644 --- a/tests/FakeXrmEasy.Core.Tests/Query/QueryTranslationTests/ProjectionTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Query/QueryTranslationTests/ProjectionTests.cs @@ -3,7 +3,7 @@ using System; using Xunit; -namespace FakeXrmEasy.Tests.FakeContextTests.QueryTranslationTests +namespace FakeXrmEasy.Core.Tests.FakeContextTests.QueryTranslationTests { public class ProjectionTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceDetailInitializerServiceTests.cs b/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceDetailInitializerServiceTests.cs index b59f1c1f..8cd8c5de 100644 --- a/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceDetailInitializerServiceTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceDetailInitializerServiceTests.cs @@ -6,7 +6,7 @@ using FakeItEasy; using FakeXrmEasy.Services; -namespace FakeXrmEasy.Tests.Services.EntityInitializer +namespace FakeXrmEasy.Core.Tests.Services.EntityInitializer { public class InvoiceDetailInitializerServiceTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceInitializerServiceTests.cs b/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceInitializerServiceTests.cs index a4d5ae4d..8a4c98c0 100644 --- a/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceInitializerServiceTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Services/EntityInitializer/InvoiceInitializerServiceTests.cs @@ -5,7 +5,7 @@ using Xunit; using FakeXrmEasy.Services; -namespace FakeXrmEasy.Tests.Services.EntityInitializer +namespace FakeXrmEasy.Core.Tests.Services.EntityInitializer { public class InvoiceInitializerServiceTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/TestDefaultEntityInitializer.cs b/tests/FakeXrmEasy.Core.Tests/TestDefaultEntityInitializer.cs index f22cf3d1..b6a42a7c 100644 --- a/tests/FakeXrmEasy.Core.Tests/TestDefaultEntityInitializer.cs +++ b/tests/FakeXrmEasy.Core.Tests/TestDefaultEntityInitializer.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Xunit; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class TestDefaultEntityInitializer : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/Tracing/IXrmFakedTracingServiceTests.cs b/tests/FakeXrmEasy.Core.Tests/Tracing/IXrmFakedTracingServiceTests.cs index 69dc9ba6..6bd0bfd1 100644 --- a/tests/FakeXrmEasy.Core.Tests/Tracing/IXrmFakedTracingServiceTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/Tracing/IXrmFakedTracingServiceTests.cs @@ -2,7 +2,7 @@ using Xunit; -namespace FakeXrmEasy.Tests +namespace FakeXrmEasy.Core.Tests { public class XrmFakedTracingServiceTests : FakeXrmEasyTestsBase { diff --git a/tests/FakeXrmEasy.Core.Tests/XrmRealContextTests/XrmRealContextTests.cs b/tests/FakeXrmEasy.Core.Tests/XrmRealContextTests/XrmRealContextTests.cs index 724009b8..4944d4e3 100644 --- a/tests/FakeXrmEasy.Core.Tests/XrmRealContextTests/XrmRealContextTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/XrmRealContextTests/XrmRealContextTests.cs @@ -3,7 +3,7 @@ using System; using Xunit; -namespace FakeXrmEasy.Tests.XrmRealContextTests +namespace FakeXrmEasy.Core.Tests.XrmRealContextTests { public class XrmRealContextTests: FakeXrmEasyTestsBase {