public void Show() { lampInHall.Off(); lampInRoom.On(); wall.turnForward(); windowBlindes.turnForward(); projector.On(); }
public string Show() { var sb = new StringBuilder(); sb.AppendLine(lampInHall.Off()); sb.AppendLine(lampInRoom.On()); sb.AppendLine(wall.turnForward()); sb.AppendLine(windowBlindes.turnForward()); return(sb.ToString()); }
public string Off() { var sb = new StringBuilder(); sb.AppendLine(lightInRoom.On()); sb.AppendLine(windowBlinds.turnForward()); sb.AppendLine(projector.Off()); return(sb.ToString()); }
public string Live() { var results = new StringBuilder(); results.AppendLine(_relay.On()) .AppendLine(_post.DoPost()) .AppendLine(_handler.Handle()) .AppendLine(_scenario.Execute()) .AppendLine(_relay.Off()); return(results.ToString()); }
public void EmergencyStop() { lampInHall.On(); lampInRoom.On(); NightLamp.Off(); }
public void Off() { lightInRoom.On(); windowBlinds.turnForward(); projector.Off(); }
public void Show() { lightInRoom.Off(); windowBlinds.turnBack(); projector.On(); }
public void Action() { hallLamp.On(); }