public static IMyoCommand Create(IMyoErrorHandlerDriver myoErrorHandlerDriver, MyoCommandDelegate command) { Contract.Requires<ArgumentNullException>(myoErrorHandlerDriver != null, "myoErrorHandlerDriver"); Contract.Requires<ArgumentNullException>(command != null, "command"); Contract.Ensures(Contract.Result<IMyoCommand>() != null); return new MyoCommand(myoErrorHandlerDriver, command); }
private MyoCommand(IMyoErrorHandlerDriver myoErrorHandlerDriver, MyoCommandDelegate command) { Contract.Requires<ArgumentNullException>(myoErrorHandlerDriver != null, "myoErrorHandlerDriver"); Contract.Requires<ArgumentNullException>(command != null, "command"); _myoErrorHandlerDriver = myoErrorHandlerDriver; _command = command; }
private MyoCommand(IMyoErrorHandlerDriver myoErrorHandlerDriver, MyoCommandDelegate command) { ////Contract.Requires<ArgumentNullException>(myoErrorHandlerDriver != null, "myoErrorHandlerDriver"); ////Contract.Requires<ArgumentNullException>(command != null, "command"); _myoErrorHandlerDriver = myoErrorHandlerDriver; _command = command; }
public static IMyoCommand Create(IMyoErrorHandlerDriver myoErrorHandlerDriver, MyoCommandDelegate command) { return(new MyoCommand(myoErrorHandlerDriver, command)); }
private MyoCommand(IMyoErrorHandlerDriver myoErrorHandlerDriver, MyoCommandDelegate command) { _myoErrorHandlerDriver = myoErrorHandlerDriver; _command = command; }
public static IMyoCommand Create(IMyoErrorHandlerDriver myoErrorHandlerDriver, MyoCommandDelegate command) { ////Contract.Requires<ArgumentNullException>(myoErrorHandlerDriver != null, "myoErrorHandlerDriver"); ////Contract.Requires<ArgumentNullException>(command != null, "command"); Contract.Ensures(Contract.Result <IMyoCommand>() != null); return(new MyoCommand(myoErrorHandlerDriver, command)); }