public BaseGenericSortingAlgorithmTest( IGenericSortingAlgorithm <char> charSortingAlgorithm, IGenericSortingAlgorithm <string> stringSortingAlgorithm, IGenericSortingAlgorithm <int> integerSortingAlgorithm) : base(new GenericToIntegerSortingAlgorithmAdapter(integerSortingAlgorithm)) { _charSortingAlgorithm = charSortingAlgorithm; _stringSortingAlgorithm = stringSortingAlgorithm; }
public GenericToIntegerSortingAlgorithmAdapter(IGenericSortingAlgorithm <int> algorithm) { _algorithm = algorithm; }