From d65f31fb023d6bb94f3e10bf3b52a33e60e8301e Mon Sep 17 00:00:00 2001 From: Pietro Martinelli Date: Thu, 9 Aug 2018 12:59:56 +0200 Subject: [PATCH 1/6] Fix compilation errors --- src/EasyEventSourcing.Messages/Script.fsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EasyEventSourcing.Messages/Script.fsx b/src/EasyEventSourcing.Messages/Script.fsx index 340ccdd..7d87765 100644 --- a/src/EasyEventSourcing.Messages/Script.fsx +++ b/src/EasyEventSourcing.Messages/Script.fsx @@ -1,8 +1,8 @@ // Learn more about F# at http://fsharp.org. See the 'F# Tutorial' project // for more guidance on F# programming. -#load "Library1.fs" -open EasyEventSourcing.Messages +//#load "Library1.fs" +//open EasyEventSourcing.Messages // Define your library scripting code here From f2a3369563eb3fad9bffae7118c4f21c2c404a34 Mon Sep 17 00:00:00 2001 From: Pietro Martinelli Date: Thu, 9 Aug 2018 13:00:22 +0200 Subject: [PATCH 2/6] Upgrade NUnit3TestAdapter --- src/EasyEventSourcing.Tests/packages.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyEventSourcing.Tests/packages.config b/src/EasyEventSourcing.Tests/packages.config index d83fa13..f040576 100644 --- a/src/EasyEventSourcing.Tests/packages.config +++ b/src/EasyEventSourcing.Tests/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file From 12e18dadb3f3830ab86142f09bc0638cb0b4287d Mon Sep 17 00:00:00 2001 From: Pietro Martinelli Date: Thu, 9 Aug 2018 13:00:55 +0200 Subject: [PATCH 3/6] Try to avoid new T() constraints, through IEventStreamInitializer interface --- .../.idea/contentModel.xml | 176 ++++ .../.idea/indexLayout.xml | 7 + .../.idea.EasyEventSourcing/.idea/modules.xml | 8 + .idea/.idea.EasyEventSourcing/.idea/vcs.xml | 6 + .../.idea/workspace.xml | 857 ++++++++++++++++++ .idea/.idea.EasyEventSourcing/riderModule.iml | 7 + .../CommandHandlerFactory.cs | 2 +- .../EventHandlerFactory.cs | 2 +- .../EasyEventSourcing.EventSourcing.csproj | 2 + .../Persistence/EventStreamCreator.cs | 35 + .../Persistence/IEventStreamInitializer.cs | 7 + .../Persistence/Repository.cs | 15 +- .../Core/Helpers/TestAggregate.cs | 10 +- .../Core/Helpers/TestInitializationEvent.cs | 14 + .../EasyEventSourcing.Tests.csproj | 11 +- .../Persistence/RepositoryTest.cs | 56 ++ 16 files changed, 1202 insertions(+), 13 deletions(-) create mode 100644 .idea/.idea.EasyEventSourcing/.idea/contentModel.xml create mode 100644 .idea/.idea.EasyEventSourcing/.idea/indexLayout.xml create mode 100644 .idea/.idea.EasyEventSourcing/.idea/modules.xml create mode 100644 .idea/.idea.EasyEventSourcing/.idea/vcs.xml create mode 100644 .idea/.idea.EasyEventSourcing/.idea/workspace.xml create mode 100644 .idea/.idea.EasyEventSourcing/riderModule.iml create mode 100644 src/EasyEventSourcing.EventSourcing/Persistence/EventStreamCreator.cs create mode 100644 src/EasyEventSourcing.EventSourcing/Persistence/IEventStreamInitializer.cs create mode 100644 src/EasyEventSourcing.Tests/Core/Helpers/TestInitializationEvent.cs create mode 100644 src/EasyEventSourcing.Tests/EventSourcing/Persistence/RepositoryTest.cs diff --git a/.idea/.idea.EasyEventSourcing/.idea/contentModel.xml b/.idea/.idea.EasyEventSourcing/.idea/contentModel.xml new file mode 100644 index 0000000..2648b94 --- /dev/null +++ b/.idea/.idea.EasyEventSourcing/.idea/contentModel.xml @@ -0,0 +1,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.EasyEventSourcing/.idea/indexLayout.xml b/.idea/.idea.EasyEventSourcing/.idea/indexLayout.xml new file mode 100644 index 0000000..f1feadf --- /dev/null +++ b/.idea/.idea.EasyEventSourcing/.idea/indexLayout.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.EasyEventSourcing/.idea/modules.xml b/.idea/.idea.EasyEventSourcing/.idea/modules.xml new file mode 100644 index 0000000..98cc749 --- /dev/null +++ b/.idea/.idea.EasyEventSourcing/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.EasyEventSourcing/.idea/vcs.xml b/.idea/.idea.EasyEventSourcing/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.EasyEventSourcing/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/.idea.EasyEventSourcing/.idea/workspace.xml b/.idea/.idea.EasyEventSourcing/.idea/workspace.xml new file mode 100644 index 0000000..b009464 --- /dev/null +++ b/.idea/.idea.EasyEventSourcing/.idea/workspace.xml @@ -0,0 +1,857 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IEvent + new T() + Streamidentifier Id re + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +