public void ChargeingStations_GetByEmptyState() { ChargingStationsGet service = new ChargingStationsGet(); StationCounts result = service.GetStationCounts("Detroit", ""); Assert.That(result.Stations, Is.Not.Null); }
public void ChargeingStations_GetByEmptyCity() { ChargingStationsGet service = new ChargingStationsGet(); StationCounts result = service.GetStationCounts("", "Michigan"); Assert.That(result.Stations, Is.Not.Null); }
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.")); } }