Exemple #1
0
        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder();

            Console.WriteLine("Please start typing..");
            char?inputChar;

            do
            {
                inputChar = Console.ReadKey().KeyChar;
                SearchHelper.InputChecks(ref inputChar, ref sb);

                var stationList = Stations.GetStations();

                var currentSearchedStations = SearchHelper.SearchForStation(sb.ToString().ToLower(), stationList);

                currentSearchedStations.ForEach(Console.WriteLine);
            } while (inputChar != '!');



            //TweetHelper.blurb = " Some Blurb";
            //TweetHelper.hashtag = " Developers, Engineers";
            //TweetHelper.url = " Some urls";



            //var builtString = TweetHelper.CheckTweetLenght("This is a test tweet");
        }
Exemple #2
0
        public void GetStations_Test()
        {
            //Arrange
            var Mock_SystemInfo     = new Mock_SystemInfo();
            var Mock_NodeController = new Mock_INodeController();
            var mockSystemInterface = new Mock_SystemInterface(Mock_SystemInfo, Mock_NodeController);
            var station             = new Stations();
            ObservableCollection <Stations> stations = new ObservableCollection <Stations>();

            //Act
            stations = station.GetStations(mockSystemInterface);

            //Assert
        }
Exemple #3
0
 public void SetUp()
 {
     _sb          = new StringBuilder();
     _stationList = Stations.GetStations();
 }