Assertion: command's switch | /r/HasProperty | switchclose
Facets:
Source sentences:
text: ICommand switchClose = new CloseSwitchCommand ( lamp ); ICommand switchOpen = new OpenSwitchCommand ( lamp ); // Pass reference to instances of the Command objects to the switch Switch @switch = new Switch ( switchClose , switchOpen ); if ( argument == "ON" ) { // Switch (the Invoker) will invoke Execute() on the command object.