/// <summary> /// Formatiert die mitgegebenen Informationen. /// </summary> /// <param name="StationBoard">Das StationBoard von welchem die Informationen angezeigt werden soll.</param> public StationBoardInfo(StationBoard StationBoard) { _StationBoard = StationBoard; SetName(); SetTargetLocation(); SetDepartureTime(); }
public void GetSmth() { //Arrange var testee = new StationBoard(); //Act testee.To = "Luzern"; testee.Stop.Departure = new DateTime(2018, 11, 20, 12, 20, 00); var result = testee.ToString(); //Assert Assert.IsNotNull(result); }
private ListViewItem GetListViewItem(SwissTransport.StationBoard stationBoard) { string[] stationBoards = { stationBoard.Stop.Departure.TimeOfDay.ToString(), stationBoard.To, stationBoard.Category + stationBoard.Number }; return(new ListViewItem(stationBoards)); }