예제 #1
0
 public GameService(DataContextFactory dataContextFactory, GameStateService gameState, CurrentMatchProvider currentMatchProvider, GameEventPublisher eventPublisher, OverridableSettings settings)
 {
     _dataContextFactory = dataContextFactory;
     _gameState = gameState;
     _currentMatchProvider = currentMatchProvider;
     _eventPublisher = eventPublisher;
     _settings = settings;
 }
예제 #2
0
        public void Given()
        {
            _container = RestApiApplication.CreateContainer();

            _dataContextFactory = _container.Resolve<DataContextFactory>();

            _dataContextFactory.DeleteAllData();

            TimeService.ResetToRealTime();
            _excelWriter = new ExcelWriter();
        }
예제 #3
0
 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;
 }
예제 #4
0
        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();
            }
        }
예제 #5
0
파일: LagImport.cs 프로젝트: bouvet/BBR2015
 public LagImport(DataContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }
예제 #6
0
 public PosisjonsService(DataContextFactory dataContextFactory, OverridableSettings appSettings)
 {
     _dataContextFactory = dataContextFactory;
     _appSettings = appSettings;
 }
예제 #7
0
 public LagOppstillingService(DataContextFactory dataContextFactory, GameStateService gameStateService, TilgangsKontroll tilgangsKontroll)
 {
     _dataContextFactory = dataContextFactory;
     _gameStateService = gameStateService;
     _tilgangsKontroll = tilgangsKontroll;
 }
예제 #8
0
 public DeltakerImport(DataContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }
예제 #9
0
 public PostImport(DataContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }
예제 #10
0
 public CurrentMatchProvider(DataContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }
예제 #11
0
파일: KmlExport.cs 프로젝트: bouvet/BBR2015
 public KmlExport(DataContextFactory dataContextFactory, CurrentMatchProvider currentMatchProvider)
 {
     _dataContextFactory = dataContextFactory;
     _currentMatchProvider = currentMatchProvider;
 }
예제 #12
0
 public MeldingService(DataContextFactory dataContextFactory, TilgangsKontroll tilgangsKontroll)
 {
     _dataContextFactory = dataContextFactory;
     _tilgangsKontroll = tilgangsKontroll;
 }
예제 #13
0
 public GameStateService(DataContextFactory dataContextFactory, CurrentMatchProvider currentMatchProvider)
 {
     _dataContextFactory = dataContextFactory;
     _currentMatchProvider = currentMatchProvider;
 }
예제 #14
0
파일: Oppsett.cs 프로젝트: bouvet/BBR2015
 public void Setup()
 {
     _dataContextFactory = _container.Resolve<DataContextFactory>();
 }
 public NoDbPosisjonsService(DataContextFactory dataContextFactory, OverridableSettings appSettings)
     : base(dataContextFactory, appSettings)
 {
 }
예제 #16
0
 public TilgangsKontroll(DataContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }
예제 #17
0
 public ExcelExport(DataContextFactory dataContextFactory, ExcelWriter excelWriter)
 {
     _dataContextFactory = dataContextFactory;
     _excelWriter = excelWriter;
 }
예제 #18
0
 public MatchImport(DataContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }
예제 #19
0
        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();
            }
        }