Beispiel #1
0
        public void DateSerializerRegistered()
        {
            var database   = Mock.Of <IMongoDatabase>();
            var eventStore = new MongodbEventStore(database);

            var serializer = BsonSerializer.LookupSerializer <Date>();

            serializer.Should().BeOfType <DateSerializer>();
        }
Beispiel #2
0
        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");
        }