Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change type names #45

Merged
merged 2 commits into from
Dec 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mode: ContinuousDelivery
next-version: 0.5.0
next-version: 0.6.0
branches:
master:
tag: beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ namespace RdbmsEventStore.EntityFramework.Tests.EventStoreTests
public class ExtraMetaTests : IClassFixture<ExtraMetaEventFactoryFixture>
{
private readonly ExtraMetaEventFactoryFixture _fixture;
private readonly EventStoreContext<ExtraMetaLongStringPersistedEventMetadata> _dbContext;
private readonly EntityFrameworkEventStoreContext<ExtraMetaLongStringPersistedEventMetadata> _dbContext;

// ReSharper disable once UnusedParameter.Local
public ExtraMetaTests(ExtraMetaEventFactoryFixture fixture, AssemblyInitializerFixture _)
{
EffortProviderFactory.ResetDb();
_fixture = fixture;
_dbContext = new EventStoreContext<ExtraMetaLongStringPersistedEventMetadata>();
_dbContext = new EntityFrameworkEventStoreContext<ExtraMetaLongStringPersistedEventMetadata>();

var stream1 = _fixture.EventFactory.Create("stream-1", 0, new object[] {
new FooEvent { Foo = "Foo" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task CommittingWithOutOfSyncDataThrowsConflictException()

[Fact]
public async Task CommittingNoEventsExitsEarly() {
var context = new Mock<EventStoreContext<GuidGuidPersistedEvent>>(MockBehavior.Strict);
var context = new Mock<EntityFrameworkEventStoreContext<GuidGuidPersistedEvent>>(MockBehavior.Strict);
var set = new Mock<DbSet<GuidGuidPersistedEvent>>(MockBehavior.Strict);
context.Setup(c => c.Set<GuidGuidPersistedEvent>()).Returns(set.Object);
var stream = Guid.NewGuid();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public class EventStoreTestBase<TId, TStreamId, TEvent, TEventMetadata, TPersist
where TPersistedEvent : class, TEventMetadata, IPersistedEvent<TStreamId>, new()
{
protected readonly EventStoreFixture<TId, TStreamId, TEvent, TEventMetadata, TPersistedEvent> _fixture;
protected readonly EventStoreContext<TPersistedEvent> _dbContext;
protected readonly EntityFrameworkEventStoreContext<TPersistedEvent> _dbContext;

public EventStoreTestBase(EventStoreFixture<TId, TStreamId, TEvent, TEventMetadata, TPersistedEvent> fixture, AssemblyInitializerFixture initializer)
{
EffortProviderFactory.ResetDb();
_fixture = fixture;
_dbContext = new EventStoreContext<TPersistedEvent>();
_dbContext = new EntityFrameworkEventStoreContext<TPersistedEvent>();
}

public void Dispose()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Data.Entity;

namespace RdbmsEventStore.EntityFramework
{
public class EntityFrameworkEventStoreContext<TEvent> : DbContext, IEventDbContext<TEvent>
where TEvent : class
{
public EntityFrameworkEventStoreContext() { }
public EntityFrameworkEventStoreContext(string connectionInfo) : base(connectionInfo) { }
public DbSet<TEvent> Events { get; set; }
}
}
12 changes: 0 additions & 12 deletions src/RdbmsEventStore.EntityFramework/EventStoreContext.cs

This file was deleted.