public MongoDBWriteDataTest() { _dependencyRegister = new UnityDependencyRegister(); ApplicationConfig.SetDependencyResolver(_dependencyRegister.GetResolver()); _dependencyRegister.Register <IDBService, MongoDBService>(); _dependencyRegister.Register <IJSONValidator, JSONValidator>(); _dependencyRegister.RegisterInstance <IAppSettingService>(AppSettingService.Instance); _dependencyRegister.Register <IEncryption, EncryptionService>(); _dependencyRegister.RegisterInstance <IViewEngine>(RazorTemplateEngine.GetEngine()); _dependencyRegister.Register <IKeyValueStorage, FileKeyValueFileStorage>(); }
public RequestHandlerBase() { _viewEngine = RazorTemplateEngine.GetEngine(); _routeExecuter = new RouteExecuter(); }