diff --git a/src/FakeXrmEasy.Core/XrmFakedContext.FileStorage.cs b/src/FakeXrmEasy.Core/XrmFakedContext.FileStorage.cs index 2a56785b..e491e581 100644 --- a/src/FakeXrmEasy.Core/XrmFakedContext.FileStorage.cs +++ b/src/FakeXrmEasy.Core/XrmFakedContext.FileStorage.cs @@ -1,3 +1,4 @@ +#if FAKE_XRM_EASY_9 using System; using System.Collections.Generic; using FakeXrmEasy.Abstractions; @@ -37,4 +38,5 @@ public void InitializeFiles(IEnumerable files) FilesInitialized = true; } } -} \ No newline at end of file +} +#endif diff --git a/tests/FakeXrmEasy.Core.Tests/FileStorage/Db/Files/InitializeFilesTests.cs b/tests/FakeXrmEasy.Core.Tests/FileStorage/Db/Files/InitializeFilesTests.cs index b27007cb..6ceef34c 100644 --- a/tests/FakeXrmEasy.Core.Tests/FileStorage/Db/Files/InitializeFilesTests.cs +++ b/tests/FakeXrmEasy.Core.Tests/FileStorage/Db/Files/InitializeFilesTests.cs @@ -1,3 +1,4 @@ +#if FAKE_XRM_EASY_9 using System; using System.Collections.Generic; using DataverseEntities; @@ -91,4 +92,5 @@ public void Should_init_file() Assert.Single(allFiles); } } -} \ No newline at end of file +} +#endif