public void Setup() { _basicAlgorithm = new BasicPrimeNumbersListGeneratorAlgorithm(); }
public PrimeNumbersService(IPrimeNumbersListGeneratorAlgorithm algorithm) { //TODO: if we ever have more than one algorithm available then we could implement a factory to return the specific algorithm that we want this._algorithm = algorithm; }