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>();
 }
Example #2
0
 public RequestHandlerBase()
 {
     _viewEngine    = RazorTemplateEngine.GetEngine();
     _routeExecuter = new RouteExecuter();
 }