public OnTestDocumentIsFoundArgs(int documentId, TestSession testSession, FlashCard[] flashCards) : this(documentId, testSession) { if (testSession is null) { throw new ArgumentNullException(nameof(testSession)); } if (flashCards is null) { throw new ArgumentNullException(nameof(flashCards)); } if (testSession.IsCorrectFlashCards(flashCards) == false) { throw new ArgumentException("Incorrect flash-cards", nameof(flashCards)); } TestSession.SetAnswers(flashCards); }