public PrintTestRunner(string name, IResultGenerator resultGenerator, IResultAnalyzer resultAnalyzer) { this.resultGenerator = resultGenerator; this.resultAnalyzer = resultAnalyzer; directory = TestDataPaths.GetTestDataDirectory(name); }
/// <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)); }
public KontehChallengeController(IGuidProvider guidProvider, IResultGenerator resultGenerator) { _guidProvider = guidProvider; _resultGenerator = resultGenerator; }
/// <summary> /// Constructor to resolve IOC implementation. /// </summary> /// <param name="publicGenerator"></param> public Repository(IResultGenerator <T> publicGenerator) { _publicGenerator = publicGenerator ?? throw new ArgumentNullException(nameof(publicGenerator)); }