public static void InitTest(TestContext context) { var config = new BeastSection { Modules = new ModuleElementCollection() }; config.Modules.Add(new ModuleElement{Type = typeof(MongoRepository).AssemblyQualifiedName}); Init(context, config); var repo = new MongoRepository { ConnectionString = "mongodb://localhost/beast", DatabaseName = "beast" }; repo.Initialize(); Users = repo; Templates = repo; Places = repo; Characters = repo; }