public override void Init() { base.Init(); if (dict == null) { dict = new ReflectionDictionary(); } copy = new UnitOfWork(new TestDataLayer(dict, DataStoreHelper.CreateInMemoryDataStore())); }
public virtual void Init() { VideoRent.Helpers.VideoRentDateTime.RealTime = false; if(dict == null) { dict = new ReflectionDictionary(); } XpoDefault.DataLayer = new TestDataLayer(dict, DataStoreHelper.CreateInMemoryDataStore()); XpoDefault.Session = null; this.session = new UnitOfWork(); CreateData(Session); }
protected void Application_Start() { //AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); RouteConfig.RegisterRoutes(RouteTable.Routes); GlobalConfiguration.Configuration.Filters.Add(new RateLimitFilterAttribute()); DataStoreHelper.Load(); }
public HomeController(DataStoreHelper helper) { _helper = helper; }
public DataStoreController( ) { _dataStoresHelper = new DataStoreHelper( ); }