public GameService(DataContextFactory dataContextFactory, GameStateService gameState, CurrentMatchProvider currentMatchProvider, GameEventPublisher eventPublisher, OverridableSettings settings) { _dataContextFactory = dataContextFactory; _gameState = gameState; _currentMatchProvider = currentMatchProvider; _eventPublisher = eventPublisher; _settings = settings; }
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 void Given() { _container = RestApiApplication.CreateContainer(); _gitt = new Gitt(_container); _dataContextFactory = _container.Resolve<DataContextFactory>(); TimeService.ResetToRealTime(); // Slett alle meldinger (blir rullet tilbake i transaksjon uansett) using (var context = _dataContextFactory.Create()) { context.Meldinger.Clear(); context.SaveChanges(); } }
public LagImport(DataContextFactory dataContextFactory) { _dataContextFactory = dataContextFactory; }
public PosisjonsService(DataContextFactory dataContextFactory, OverridableSettings appSettings) { _dataContextFactory = dataContextFactory; _appSettings = appSettings; }
public LagOppstillingService(DataContextFactory dataContextFactory, GameStateService gameStateService, TilgangsKontroll tilgangsKontroll) { _dataContextFactory = dataContextFactory; _gameStateService = gameStateService; _tilgangsKontroll = tilgangsKontroll; }
public DeltakerImport(DataContextFactory dataContextFactory) { _dataContextFactory = dataContextFactory; }
public PostImport(DataContextFactory dataContextFactory) { _dataContextFactory = dataContextFactory; }
public CurrentMatchProvider(DataContextFactory dataContextFactory) { _dataContextFactory = dataContextFactory; }
public KmlExport(DataContextFactory dataContextFactory, CurrentMatchProvider currentMatchProvider) { _dataContextFactory = dataContextFactory; _currentMatchProvider = currentMatchProvider; }
public MeldingService(DataContextFactory dataContextFactory, TilgangsKontroll tilgangsKontroll) { _dataContextFactory = dataContextFactory; _tilgangsKontroll = tilgangsKontroll; }
public GameStateService(DataContextFactory dataContextFactory, CurrentMatchProvider currentMatchProvider) { _dataContextFactory = dataContextFactory; _currentMatchProvider = currentMatchProvider; }
public void Setup() { _dataContextFactory = _container.Resolve<DataContextFactory>(); }
public NoDbPosisjonsService(DataContextFactory dataContextFactory, OverridableSettings appSettings) : base(dataContextFactory, appSettings) { }
public TilgangsKontroll(DataContextFactory dataContextFactory) { _dataContextFactory = dataContextFactory; }
public ExcelExport(DataContextFactory dataContextFactory, ExcelWriter excelWriter) { _dataContextFactory = dataContextFactory; _excelWriter = excelWriter; }
public MatchImport(DataContextFactory dataContextFactory) { _dataContextFactory = dataContextFactory; }
public void Given() { _container = RestApiApplication.CreateContainer(); _appSettings = new OverridableSettings(); _container.Register(Component.For<OverridableSettings>().Instance(_appSettings).IsDefault().Named(Guid.NewGuid().ToString())); _gitt = new Gitt(_container); _dataContextFactory = _container.Resolve<DataContextFactory>(); TimeService.ResetToRealTime(); // Slett alle posisjoner (blir rullet tilbake i transaksjon uansett) using (var context = _dataContextFactory.Create()) { context.DeltakerPosisjoner.Clear(); context.SaveChanges(); } }