private void TurnOff(IRelay relay, List <string> trace) { var theLastSigh = relay.Off(); _output.WriteLine(theLastSigh); trace.Add(theLastSigh); }
public void Off() { projector.Off(); lampInHall.On(); lampInRoom.On(); wall.turnBack(); windowBlindes.turnBack(); }
public string Show() { var sb = new StringBuilder(); sb.AppendLine(lightInRoom.Off()); sb.AppendLine(windowBlinds.turnBack()); sb.AppendLine(projector.On()); return(sb.ToString()); }
public string Off() { var sb = new StringBuilder(); sb.AppendLine(projector.Off()); sb.AppendLine(lampInHall.On()); sb.AppendLine(lampInRoom.On()); sb.AppendLine(wall.turnBack()); sb.AppendLine(windowBlindes.turnBack()); 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 Action() { lampInRoom.Off(); lampInHall.Off(); NightLamp.On(); }
public string Stop() => projector.Off();
public void Stop() { projector.Off(); }
public void Show() { lightInRoom.Off(); windowBlinds.turnBack(); projector.On(); }