public Simulacre(IEar ear, IMouth mouth, ICortex cortex, INerve nerve, ILoggerFactory logFac) { this.ear = ear; this.mouth = mouth; this.cortex = cortex; this.logger = logFac.GetLogger(this.GetType()); this.nerve = nerve; }
public MovelCommand(Func <TInput, Task <TOutput> > execute, IEar <bool> canExecute) { this.execute = execute ?? (input => Task.FromResult(default(TOutput))); this.canExecute = canExecute ?? new ConstantEar <bool>(true); this.canExecute.ValueChanged += EarOnValueChanged; }