public void Execute_CallsGet_FromRepository()
        {
            var rightDigit = new SupposedDigit <object>(0, _value);

            _instance.Execute(rightDigit);

            _repository.Verify(instance => instance.Get <object>());
        }
Exemplo n.º 2
0
        public IEnumerable <IEvaluationResult> Execute(ISupposedNumber <TValue> parameter)
        {
            _distinctDigitsValidation.Execute(parameter);

            foreach (ISupposedDigit <TValue> supposedDigit in parameter.Digits)
            {
                yield return(_evaluateSupposedDigit.Execute(supposedDigit));
            }
        }