-
Notifications
You must be signed in to change notification settings - Fork 36
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 #202 from sergeyshushlyapin/feature/sc9
Upgrade to Sitecore 9
- Loading branch information
Showing
98 changed files
with
3,694 additions
and
3,912 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RuleSet Name="Sitecore FakeDb" Description="Sitecore FakeDb rules." ToolsVersion="14.0"> | ||
<RuleSet Name="Sitecore FakeDb" Description="Sitecore FakeDb rules." ToolsVersion="15.0"> | ||
<IncludeAll Action="Warning" /> | ||
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> | ||
<Rule Id="CS0618" Action="Error" /> | ||
<Rule Id="CS1591" Action="None" /> | ||
</Rules> | ||
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp"> | ||
<Rule Id="CS0105" Action="Error" /> | ||
</Rules> | ||
</RuleSet> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
%WINDIR%/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe Build.msbuild /p:Configuration=Release /t:Versions /p:NoWarn=1591 | ||
"%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe" Build.msbuild /p:Configuration=Release /t:Versions /p:NoWarn=1591 /p:RunCodeAnalysis=true;CodeAnalysisRuleSet=..\..\Sitecore.FakeDb.ruleset /fileLogger |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("2.0.0.0")] | ||
[assembly: AssemblyFileVersion("2.0.0-alpha1")] | ||
[assembly: AssemblyInformationalVersion("2.0.0-alpha1")] | ||
[assembly: AssemblyFileVersion("2.0.0.0")] | ||
[assembly: AssemblyInformationalVersion("2.0.0-beta1")] |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<packages> | ||
<package id="AutoFixture" version="4.0.0" targetFramework="net452" /> | ||
<package id="Fare" version="2.1.1" targetFramework="net452" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="AutoFixture" version="4.0.0" targetFramework="net452" /> | ||
<package id="Fare" version="2.1.1" targetFramework="net452" /> | ||
</packages> |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<packages> | ||
<package id="Castle.Core" version="4.2.0" targetFramework="net452" /> | ||
<package id="NSubstitute" version="3.1.0" targetFramework="net452" /> | ||
<package id="System.Threading.Tasks.Extensions" version="4.3.0" targetFramework="net452" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Castle.Core" version="4.2.0" targetFramework="net452" /> | ||
<package id="NSubstitute" version="3.1.0" targetFramework="net452" requireReinstallation="true" /> | ||
<package id="System.Threading.Tasks.Extensions" version="4.3.0" targetFramework="net452" /> | ||
</packages> |
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
namespace Sitecore.FakeDb.Configuration | ||
{ | ||
using System; | ||
using Sitecore.Configuration; | ||
|
||
public class ClientDataStoreStub : ClientDataStore | ||
{ | ||
public ClientDataStoreStub() | ||
: base(new TimeSpan(), false) | ||
{ | ||
} | ||
|
||
protected override void CompactData() | ||
{ | ||
} | ||
|
||
protected override string LoadData(string key) | ||
{ | ||
return null; | ||
} | ||
|
||
protected override void SaveData(string key, string data) | ||
{ | ||
} | ||
|
||
protected override void RemoveData(string key) | ||
{ | ||
} | ||
} | ||
} | ||
using System; | ||
using Sitecore.Configuration; | ||
|
||
public class ClientDataStoreStub : ClientDataStore | ||
{ | ||
public ClientDataStoreStub() | ||
: base(new TimeSpan(), new EventQueueStub(), new EventManagerStub()) | ||
{ | ||
} | ||
|
||
protected override void CompactData() | ||
{ | ||
} | ||
|
||
protected override string LoadData(string key) | ||
{ | ||
return null; | ||
} | ||
|
||
protected override void SaveData(string key, string data) | ||
{ | ||
} | ||
|
||
protected override void RemoveData(string key) | ||
{ | ||
} | ||
} | ||
} |
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,63 @@ | ||
namespace Sitecore.FakeDb.Configuration | ||
{ | ||
using System; | ||
using Sitecore.Abstractions; | ||
using Sitecore.Eventing; | ||
|
||
internal class EventManagerStub : BaseEventManager | ||
{ | ||
public override bool Enabled => false; | ||
|
||
[Obsolete] | ||
public override void QueueEvent<TEvent>(TEvent @event) | ||
{ | ||
} | ||
|
||
[Obsolete] | ||
public override void QueueEvent<TEvent>(TEvent @event, bool addToGlobalQueue, bool addToLocalQueue) | ||
{ | ||
} | ||
|
||
public override void RaiseEvent<TEvent>(TEvent @event) | ||
{ | ||
} | ||
|
||
[Obsolete] | ||
public override void RaiseQueuedEvents() | ||
{ | ||
} | ||
|
||
[Obsolete] | ||
public override void RemoveQueuedEvents(EventQueueQuery query) | ||
{ | ||
} | ||
|
||
public override void Initialize() | ||
{ | ||
} | ||
|
||
public override SubscriptionId Subscribe<TEvent>(Action<TEvent> eventHandler) | ||
{ | ||
return null; | ||
} | ||
|
||
public override SubscriptionId Subscribe<TEvent>(Action<TEvent, EventContext> eventHandler) | ||
{ | ||
return null; | ||
} | ||
|
||
public override SubscriptionId Subscribe<TEvent>(Action<TEvent> eventHandler, Predicate<TEvent> filter) | ||
{ | ||
return null; | ||
} | ||
|
||
public override SubscriptionId Subscribe<TEvent>(Action<TEvent, EventContext> eventHandler, Func<TEvent, EventContext, bool> filter) | ||
{ | ||
return null; | ||
} | ||
|
||
public override void Unsubscribe(SubscriptionId subscriptionId) | ||
{ | ||
} | ||
} | ||
} |
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,69 @@ | ||
namespace Sitecore.FakeDb.Configuration | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Sitecore.Eventing; | ||
|
||
internal class EventQueueStub : IEventQueue | ||
{ | ||
public string Name { get; } | ||
|
||
public bool ListenToRemoteEvents { get; set; } | ||
|
||
|
||
public void Cleanup(uint daysToKeep) | ||
{ | ||
} | ||
|
||
public void Cleanup(TimeSpan intervalToKeep) | ||
{ | ||
} | ||
|
||
public object DeserializeEvent(QueuedEvent queuedEvent) | ||
{ | ||
return null; | ||
} | ||
|
||
public QueuedEvent GetLastEvent() | ||
{ | ||
return null; | ||
} | ||
|
||
public long GetQueuedEventCount() | ||
{ | ||
return 0; | ||
} | ||
|
||
public IEnumerable<QueuedEvent> GetQueuedEvents() | ||
{ | ||
return Enumerable.Empty<QueuedEvent>(); | ||
} | ||
|
||
public IEnumerable<QueuedEvent> GetQueuedEvents(string targetInstanceName) | ||
{ | ||
return Enumerable.Empty<QueuedEvent>(); | ||
} | ||
|
||
public IEnumerable<QueuedEvent> GetQueuedEvents(EventQueueQuery query) | ||
{ | ||
return Enumerable.Empty<QueuedEvent>(); | ||
} | ||
|
||
public void ProcessEvents(Action<object, Type> handler) | ||
{ | ||
} | ||
|
||
public void QueueEvent<TEvent>(TEvent @event) | ||
{ | ||
} | ||
|
||
public void QueueEvent<TEvent>(TEvent @event, bool addToGlobalQueue, bool addToLocalQueue) | ||
{ | ||
} | ||
|
||
public void RemoveQueuedEvents(EventQueueQuery query) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.