Exemple #1
0
        public void Execute_CallsInsert_FromRepository()
        {
            var expected = new SecretNumber <int>(new List <ISecretDigit <int> >());

            _instance.Execute(expected);

            _repository.Verify(instance => instance.Insert(expected));
        }
Exemple #2
0
        public Unit Execute(Unit parameter)
        {
            int input = ReadSecretNumber();
            ISecretNumber <int> secretNumber = _secretNumberBuilder.WithInteger(input).Build();

            _registerSecretNumber.Execute(secretNumber);

            return(Unit.Default);
        }