public void Given() { _container = RestApiApplication.CreateContainer(); _dataContextFactory = _container.Resolve <DataContextFactory>(); _dataContextFactory.DeleteAllData(); TimeService.ResetToRealTime(); _excelWriter = new ExcelWriter(); }
public IHttpActionResult DeleteAllData() { if (!_appSettings.TillatSlettAlleData) { return(BadRequest()); } _dataContextFactory.DeleteAllData(); ClearCaching(); return(Ok()); }