/// <summary> /// Initializes a new instance of the <see cref="RollController" /> class. /// </summary> /// <param name="provider">The CharacterProvider.</param> public RollController(ICharacterProvider provider, IStatisticProvider statProvider, IRollStrategy strategy) { _provider = provider; _statProvider = statProvider; _strategy = strategy; }
public DieModel(int id, IRollStrategy rollStrategy) { if (rollStrategy == null) throw new ArgumentNullException("rollStrategy is null."); _rollStrategy = rollStrategy; Id = id; }