public void ReadTempTest() { // ARRAnge AEMETClient met = new AEMETClient(); // Act met.ReadTemp(); // assert Assert.IsTrue(false); }
public static TimeTable ArrivalTimes(string category, string token, string root_url) { TimeTable model = ReadCSV(category, root_url); model.EMTToken = token; model.Category = category; EMTClient emt = new EMTClient(); // buses AEMETClient met = new AEMETClient(); // weather model.Stops.SafeForEach(stop => { string[] lines = model.LinesByStop(stop); List <BusLine> times = emt.TimeArrivalBus(stop, lines, model.EMTToken); model.UpdateTimes(times); }); model.Temp = met.ReadTemp().ToString(); return(model); }