public void RegisterTableDescriptor() { var ds = new DatabaseService(); var mysql = new DatabaseDescriptor("UserManagement", new SqLiteDbDriver( "Data Source=:memory:")); var mongo = new DatabaseDescriptor("CommandQueue", new MongoDbDriver( "mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test")); ds.RegisterDatabase(mysql); ds.RegisterDatabase(mongo); RegisterDataTypes(ds); var users = CreateUsers(ds); var roles = CreateRoles(ds); SetupFkFromUsersToRoles(roles, users); ds["UserManagement"].RegisterTable(users); ds["UserManagement"].RegisterTable(roles); ds["UserManagement"].Verify(); ds["UserManagement"].CreateDb(); var queue = CreateQueue(ds); ds["CommandQueue"].RegisterTable(queue); ds["CommandQueue"].Verify(); Assert.IsTrue(ds.Verify()); }