Beispiel #1
0
 public PrizeSelectionController(IPrizeSelectionTableHelper prizeSelectionTableHelper, ISelectionEngine selectionEngine,
                                 ISelectionSuccessCalculator selectionSuccessCalculator, IMapper mapper, ILogger <PrizeSelectionController> logger)
 {
     _prizeSelectionTableHelper  = prizeSelectionTableHelper;
     _selectionEngine            = selectionEngine;
     _selectionSuccessCalculator = selectionSuccessCalculator;
     _mapper = mapper;
     _logger = logger;
 }
        public static void InitializeTestClass(TestContext testContext)
        {
            _testServerFixture = new TestServerFixture();

            //for use in helper methdods - logic stolen from unit tests
            _resultsFormatter           = new ResultsFormatter();
            _prizeSelectionTableHelper  = new PrizeSelectionTableHelper(_resultsFormatter);
            _prizeResultsTableHelper    = new PrizeResultsTableHelper();
            _selectionEngine            = new SelectionEngine(_prizeSelectionTableHelper, _prizeResultsTableHelper, new NullLogger <ISelectionEngine>());
            _selectionSuccessCalculator = new SelectionSuccessCalculator(_prizeResultsTableHelper, _selectionEngine);

            _mapper = ConfigureMappings();
        }
Beispiel #3
0
 public SelectionSuccessCalculator(IPrizeResultsTableHelper prizeResultsTableHelper, ISelectionEngine selectionEngine)
 {
     _prizeResultsTableHelper = prizeResultsTableHelper;
     _selectionEngine         = selectionEngine;
 }