Skip to content

Commit 4f98b39

Browse files
committed
Added diagram and event source stub
1 parent 2757d6c commit 4f98b39

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using EventFlow.EntityFramework;
2+
using Microsoft.EntityFrameworkCore;
3+
4+
namespace EventStore.Middleware
5+
{
6+
public class EventStoreContextProviderStub : IDbContextProvider<EventSourcingDbContext>
7+
{
8+
public EventSourcingDbContext CreateContext()
9+
{
10+
var options = new DbContextOptionsBuilder<EventSourcingDbContext>()
11+
.UseInMemoryDatabase("For testing")
12+
.Options;
13+
14+
var context = new EventSourcingDbContext(options);
15+
return context;
16+
}
17+
}
18+
}

diagram.png

49 KB
Loading

0 commit comments

Comments
 (0)