public void DateSerializerRegistered() { var database = Mock.Of <IMongoDatabase>(); var eventStore = new MongodbEventStore(database); var serializer = BsonSerializer.LookupSerializer <Date>(); serializer.Should().BeOfType <DateSerializer>(); }
public void IncludesNeededConventions() { var database = Mock.Of <IMongoDatabase>(); var eventStore = new MongodbEventStore(database); var conventionPack = ConventionRegistry.Lookup(typeof(Event)); conventionPack.Conventions.Should().Contain(x => x.Name == "IgnoreExtraElements"); }