public void Execute_CallsInsert_FromRepository() { var expected = new SecretNumber <int>(new List <ISecretDigit <int> >()); _instance.Execute(expected); _repository.Verify(instance => instance.Insert(expected)); }
public Unit Execute(Unit parameter) { int input = ReadSecretNumber(); ISecretNumber <int> secretNumber = _secretNumberBuilder.WithInteger(input).Build(); _registerSecretNumber.Execute(secretNumber); return(Unit.Default); }