public ValidationRulesTests() { ValidationExtensions.RegisteredDtoValidators.Clear(); appHost = new AppHost(); var container = appHost.Container; var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); container.Register <IDbConnectionFactory>(dbFactory); container.Register(appHost.GetMemoryCacheClient()); ((AppHost)appHost).ValidationFeature = GetValidationFeature(container); appHost.Init() .Start(Config.ListeningOn); }