public OptionControl( IControlModel model) { this.model = model; InitializeComponent(); Update(); }
private void Setup() { if (_model != null) { return; } _mock = new Moq.Mock <IControlModel>(MockBehavior.Loose); _mock.Setup(x => x.IssueCommand(CommandType.Flash)).Returns(Task.FromResult(true)); _model = _mock.Object; }
public FlashViewModelExecute(IControlModel model) { TimeoutMilliseconds = 10000; Operations.Add(new FlashOperation(model)); }
public HonkViewModelExecute(IControlModel model) { TimeoutMilliseconds = 10000; Operations.Add(new HonkOperation(model)); }
public ControlViewModel(IAuthModel authModel, IControlModel model, IExrinContainer exrinContainer) : base(authModel, exrinContainer, new ControlVisualState(model)) { Model = model; }
public HonkOperation(IControlModel model) { _model = model; }
public FlashOperation(IControlModel model) { _model = model; }