Beispiel #1
0
        public void ChargeingStations_GetByEmptyState()
        {
            ChargingStationsGet service = new ChargingStationsGet();
            StationCounts       result  = service.GetStationCounts("Detroit", "");

            Assert.That(result.Stations, Is.Not.Null);
        }
Beispiel #2
0
        public void ChargeingStations_GetByEmptyCity()
        {
            ChargingStationsGet service = new ChargingStationsGet();
            StationCounts       result  = service.GetStationCounts("", "Michigan");

            Assert.That(result.Stations, Is.Not.Null);
        }
Beispiel #3
0
        public void ChargeingStations_GetByNonExistingCityAndState()
        {
            ChargingStationsGet service = new ChargingStationsGet();

            try
            {
                StationCounts result = service.GetStationCounts("abc", "def");
            }
            catch (Exception e)
            {
                Assert.That(e.Message, Is.EqualTo("City/state combination not found."));
            }
        }