예제 #1
0
        public void Given()
        {
            _container = RestApiApplication.CreateContainer();

            _dataContextFactory = _container.Resolve <DataContextFactory>();

            _dataContextFactory.DeleteAllData();

            TimeService.ResetToRealTime();
            _excelWriter = new ExcelWriter();
        }
예제 #2
0
        public IHttpActionResult DeleteAllData()
        {
            if (!_appSettings.TillatSlettAlleData)
            {
                return(BadRequest());
            }

            _dataContextFactory.DeleteAllData();

            ClearCaching();

            return(Ok());
        }