public void resolve_storage_for_event_type() { var schema = new DocumentSchema(new StoreOptions(), null, null); schema.StorageFor(typeof(RaceStarted)).ShouldBeOfType <EventMapping>() .DocumentType.ShouldBe(typeof(RaceStarted)); }
public void resolve_storage_for_event_type() { var schema = new DocumentSchema(new StoreOptions(), new ConnectionSource(), new DevelopmentSchemaCreation(new ConnectionSource(), new NulloMartenLogger())); schema.StorageFor(typeof(RaceStarted)).ShouldBeOfType <EventMapping <RaceStarted> >() .DocumentType.ShouldBe(typeof(RaceStarted)); }
public when_deriving_the_table_definition_from_the_database_schema_Tests() { ConnectionSource.CleanBasicDocuments(); _schema = _container.GetInstance <DocumentSchema>(); theMapping = _schema.MappingFor(typeof(User)).As <DocumentMapping>(); theMapping.DuplicateField("UserName"); _storage = _schema.StorageFor(typeof(User)); theDerivedTable = _schema.TableSchema(theMapping.TableName); }
public void can_create_a_new_storage_for_a_document_type_without_subclasses() { var storage = _schema.StorageFor(typeof(User)); storage.ShouldNotBeNull(); }
public void resolve_storage_for_stream_type() { var schema = new DocumentSchema(new StoreOptions(), null, null); schema.StorageFor(typeof(Stream <Race>)).ShouldBeOfType <AggregateStorage <Race> >(); }
public void can_create_a_new_storage_for_an_IDocument_type() { var storage = _schema.StorageFor(typeof(User)); storage.ShouldNotBeNull(); }
public void resolve_storage_for_stream_type() { var schema = new DocumentSchema(new StoreOptions(), new ConnectionSource(), new DevelopmentSchemaCreation(new ConnectionSource(), new NulloMartenLogger())); schema.StorageFor(typeof(EventStream)).ShouldBeOfType <EventStreamStorage>(); }