public void Given() { _container = RestApiApplication.CreateContainer(); _dataContextFactory = _container.Resolve<DataContextFactory>(); _dataContextFactory.DeleteAllData(); TimeService.ResetToRealTime(); _excelWriter = new ExcelWriter(); }
public AdminController(GameStateService gameStateService, OverridableSettings appSettings, TilgangsKontroll tilgangsKontroll, PosisjonsService posisjonsService, ExcelImport excelImport, KmlToExcelPoster kmlToExcelPoster, ExcelWriter excelWriter, ExcelExport excelExport, DataContextFactory dataContextFactory, CurrentMatchProvider matchProvider) { _gameStateService = gameStateService; _appSettings = appSettings; _tilgangsKontroll = tilgangsKontroll; _posisjonsService = posisjonsService; _excelImport = excelImport; _kmlToExcelPoster = kmlToExcelPoster; _excelWriter = excelWriter; _excelExport = excelExport; _dataContextFactory = dataContextFactory; _matchProvider = matchProvider; }
public ExcelExport(DataContextFactory dataContextFactory, ExcelWriter excelWriter) { _dataContextFactory = dataContextFactory; _excelWriter = excelWriter; }
protected void Importer(MatchImport.ExcelMatch match, List<Lag> lagListe = null, List<PostImport.ExcelPost> poster = null) { _excelWriter = new ExcelWriter(); _excelWriter.SkrivTilExcel(match, lagListe, poster); Importer(); }