コード例 #1
0
 /// <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();
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 private ListViewItem GetListViewItem(SwissTransport.StationBoard stationBoard)
 {
     string[] stationBoards = { stationBoard.Stop.Departure.TimeOfDay.ToString(), stationBoard.To, stationBoard.Category + stationBoard.Number };
     return(new ListViewItem(stationBoards));
 }