public void Setup() { IocConfig.PreStart(); DbConfig.Setup(); var db = ObjectFactory.GetInstance <IDbConnection>(); new SchemaBuilder(db).GenerateSchema(true); AutomapperConfig.CreateMappings(); // Map routes... This is an annoying hack because the MVC team figured people don't care about testing attribute routes! MvcAttributeRoutesHack.MapAttributeRoutes(); }