public PuzzleSolution SolvePuzzle(PuzzleValue puzzle) { if (puzzle == null) { throw new ArgumentNullException(nameof(puzzle)); } return(new PuzzleSolution(Decrypt(puzzle._Value))); }
public override bool Equals(object obj) { PuzzleValue item = obj as PuzzleValue; if (item == null) { return(false); } return(this._Value.Equals(item._Value)); }
public Puzzle(RsaPubKey rsaPubKey, PuzzleValue puzzleValue) { this._RsaPubKey = rsaPubKey ?? throw new ArgumentNullException(nameof(rsaPubKey)); this._PuzzleValue = puzzleValue ?? throw new ArgumentNullException(nameof(puzzleValue)); }