예제 #1
0
        public PrintTestRunner(string name, IResultGenerator resultGenerator, IResultAnalyzer resultAnalyzer)
        {
            this.resultGenerator = resultGenerator;
            this.resultAnalyzer  = resultAnalyzer;

            directory = TestDataPaths.GetTestDataDirectory(name);
        }
예제 #2
0
        /// <summary>
        /// Konstruktor
        /// </summary>
        /// <param name="nStartCredits">Początkowa ilość kredytów</param>
        /// <param name="reels">Kolekcja bębnów</param>
        /// <param name="resultGenerator">Generator kolejnych wartości</param>
        /// <param name="winingTable">Tabela wygranych</param>
        public MachineOneLineWin(uint nStartCredits, IEnumerable <IReel <T> > reels, IResultGenerator <T> resultGenerator, IDictionary <List <T>, uint> winingTable)
        {
            if (reels == null || reels.Count() < 1)
            {
                throw new ArgumentException("At least 1 reesl must be provided.", nameof(reels));
            }

            Credits           = nStartCredits;
            m_reels           = reels;
            m_resultGenerator = resultGenerator ?? throw new ArgumentNullException(nameof(resultGenerator));
            m_winingTable     = winingTable ?? throw new ArgumentNullException(nameof(winingTable));
        }
예제 #3
0
 public KontehChallengeController(IGuidProvider guidProvider, IResultGenerator resultGenerator)
 {
     _guidProvider = guidProvider;
     _resultGenerator = resultGenerator;
 }
예제 #4
0
 /// <summary>
 /// Constructor to resolve IOC implementation.
 /// </summary>
 /// <param name="publicGenerator"></param>
 public Repository(IResultGenerator <T> publicGenerator)
 {
     _publicGenerator = publicGenerator ?? throw new ArgumentNullException(nameof(publicGenerator));
 }