public IBalancingStrategy Make(BalancingStrategy balancingStrategy) { switch (balancingStrategy) { case BalancingStrategy.BruteForce: return new BruteForceBalancingStrategy(); default: throw new ArgumentOutOfRangeException(nameof(balancingStrategy), balancingStrategy, null); } }
public IBalancingStrategy Make(BalancingStrategy balancingStrategy) { switch (balancingStrategy) { case BalancingStrategy.BruteForce: return(new BruteForceBalancingStrategy()); default: throw new ArgumentOutOfRangeException(nameof(balancingStrategy), balancingStrategy, null); } }